-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Redux stores and Mint stores are quite similar: you have some state (which in Redux is a "pojo" and in a Mint store or component is the sum of all its A library in the redux space which I would like to see as a Mint feature is redux-undo, which takes a reducer as an argument and returns an "undo-able" reducer which remembers all the states it's been in, past present & future. This makes it very easy to implement "undo/redo" features in any app which uses redux. They use this to great effect in the redux dev tools browser extension to automatically instrument all your reducers and capture the full timeline of state transitions in your application, giving you "time travel" debugging. |
Beta Was this translation helpful? Give feedback.
Redux stores and Mint stores are quite similar: you have some state (which in Redux is a "pojo" and in a Mint store or component is the sum of all its
state
declarations) and various functions which take the current state of the store as an argument and return the new state of the store. In Redux these are called "reducers" (as in thereduce
higher-order function; all the state transitions are reductions as such) while in Mint these are functions which use thenext
keyword.A library in the redux space which I would like to see as a Mint feature is redux-undo, which takes a reducer as an argument and returns an "undo-able" reducer which remembers all the states it's been in, past present …