Max Heiber
Max Heiber
I feel a little bit silly for publishing a 12-line library, the state machine thing is more of a pattern. You can just do this: ``` const fetchUsersReducer = (state,...
@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.
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)
Here's a solution using [shuf](https://www.gnu.org/software/coreutils/manual/html_node/shuf-invocation.html) from GNU coreutils: `echo '[1, 2, 3, 4]' | jq -c '.[]' | shuf | jq -s '.'` Output: ``` [ 4, 1, 3, 2...
Re > The reason I even found this is that the error messages reported by both GHC and OCaml are quite poor. What's the OCaml error message? This OCaml translation...
@gregwebs what do you mean? Thanks for your help as I try to figure this out.