redux-machine
redux-machine copied to clipboard
Real world example?
Maybe take one from redux-sagas, would help people choose between the two.
I do like the concept of a more "lightweight" alternative.
@DarrylD If you're currently deciding whether to go with redux-saga or redux-machine, definitely go with redux-saga! I haven't used redux-machine yet and am still working on examples.
Already using sagas but, looking for simpler solutions. Can't wait to see the examples!
keeping this open so I can remember to add examples—also happy to accept community-contributed examples
this is still in progress—will have some neat stuff (in my opinion) to share soon!
still working on this ... the challenge was finding a simple declarative effects library, and I ended up having to write one
@DarrylD finally got some examples! The links are in the README. I'd like to leave the issue open while I work on a nested machine example.
A great example would be an adaptation of https://github.com/slugo/redux-tetris, since the Tetris game has tons of nested and overlapping states ( for example: in progress + level + paused)
Is there a more plain example without redux-funk?
@mheiber I notice in your example, you are using call from redux-funk which seems like it's just re-dispatching the action. Isn't this an anti-pattern for redux?