Skip to content

Redux state container for ESP8226, ESP32  #3420

Closed
@shubham-sri

Description

@shubham-sri

Missing Feature: NodeRedux - state container

Redux is a predictable state container for JavaScript apps. So we can use the same concept to manage the state of ESP devices. It helps you write applications that behave consistently.

Justification

The whole global state of your app is stored in an object tree inside a single store. The only way to change the state tree is to create an action, an object describing what happened, and dispatch it to the store. To specify how the state gets updated in response to an action, you write pure reducer unctions that calculate a new state based on the old state and the action.

Workarounds

I have translated the logic of Redux in JS to Lua. You can check here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions