w_flux library

The w_flux library implements a uni-directional data flow pattern comprised of Actions, Stores, and FluxComponents.


A command that can be dispatched and listened to. [...]
A subscription used to cancel registered listeners to an Action.
A mixin that overrides the Component.redraw method of a React Component (including a FluxComponent) and prevents the component from being redrawn more than once per animation frame. [...]
FluxComponent<ActionsT, StoresT>
FluxComponents are responsible for rendering application views and turning user interactions and events into Actions. FluxComponents can use data from one or many Store instances to define the resulting component. [...]
A Store is a repository and manager of app state. This class should be extended to fit the needs of your application and its data. The number and hierarchy of stores is dependent upon the state management needs of your application. [...]


StoreHandler(Store event) → dynamic