redux-machine icon indicating copy to clipboard operation
redux-machine copied to clipboard

Real world example?

Open DarrylD opened this issue 9 years ago • 9 comments

Maybe take one from redux-sagas, would help people choose between the two.

I do like the concept of a more "lightweight" alternative.

DarrylD avatar Sep 05 '16 21:09 DarrylD

@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.

mheiber avatar Sep 06 '16 00:09 mheiber

Already using sagas but, looking for simpler solutions. Can't wait to see the examples!

DarrylD avatar Sep 06 '16 01:09 DarrylD

keeping this open so I can remember to add examples—also happy to accept community-contributed examples

mheiber avatar Sep 06 '16 01:09 mheiber

this is still in progress—will have some neat stuff (in my opinion) to share soon!

mheiber avatar Sep 08 '16 18:09 mheiber

still working on this ... the challenge was finding a simple declarative effects library, and I ended up having to write one

mheiber avatar Sep 14 '16 16:09 mheiber

@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.

mheiber avatar Sep 30 '16 01:09 mheiber

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)

mheiber avatar Nov 08 '16 03:11 mheiber

Is there a more plain example without redux-funk?

dagumak avatar Oct 02 '17 18:10 dagumak

@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?

dagumak avatar Oct 02 '17 18:10 dagumak