didierfranc / react-waterfall

React store built on top of the new context API
MIT License
1.33k stars 77 forks source link

Question: Middleware possibilites #73

Open oschade opened 6 years ago

oschade commented 6 years ago

Do this has any middleware possibilities or will it have it in the future? Would be handy for realising a persistent store for example.

didierfranc commented 6 years ago

Of course you can, there is no documentation yet but a good example here https://github.com/didierfranc/react-waterfall/blob/master/src/helpers/devtools.js

nyenye commented 6 years ago

So you are hinting that subscribe could be used to create a middleware? Or am I missing something?

digitive commented 5 years ago

Can middleware access the result (changeset to state) of current action?