Skip to content

Latest commit

 

History

History
731 lines (542 loc) · 33.7 KB

reducers.md

File metadata and controls

731 lines (542 loc) · 33.7 KB

Reducers

Reducer Utilities

Higher-Order Reducers

Related topics: Use Cases - Undo-Redo

Prebuilt Use Case Reducers

Advanced Reducer Use Cases

Dynamic Reducer Injection

State Machines

  • redux-machine
    https://github.com/mheiber/redux-machine
    A tiny library for creating state machines in Redux apps. Provide an object of reducers to handle different states, and return a special key with the next state name to have the lib swap the active state reducer and include the current state name.

  • xstate
    https://github.com/davidkpiano/xstate
    Simple, stateless JavaScript finite state machines and statecharts. Like reducers on steroids, and can be integrated into Redux.

  • redux-dsm
    https://github.com/ericelliott/redux-dsm
    Declarative State Machines for Redux: An async state boilerplate reducer.

  • redux-state-machine
    https://github.com/realb0t/redux-state-machine
    Wraps the javascript-state-machine library for use as a Redux reducer.

  • easy-redux-fsm
    https://github.com/andrewosh/easy-redux-fsm
    Specify action creators as a state/transition graph

  • redux-automata
    https://github.com/mocoding-software/redux-automata
    redux-automata - is a finite state machine based on Redux store. It allows developer to generate reducer automatically based on current state. The library was developed to support the following scenarios: Provide different behavoiur for the same action and avoid massive if-then-else; Ignore specific actions while in specific states (or better saying - process actions only in specific states).

  • redux-fsm
    https://github.com/quadreex/fsm-redux
    Lightweight library for Finite State Machine support in Redux applications. This library implements FSM pattern as swappable redux reducers. In a configuration object you specify which reducer should be used for each state of FSM and actions which trigger state change.