Skip to content

Redux and Mint Store Comparison #767

Answered by ryanprior
jgarte asked this question in Q&A
Discussion options

You must be logged in to vote

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 the reduce higher-order function; all the state transitions are reductions as such) while in Mint these are functions which use the next 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 …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gdotdesign
Comment options

Answer selected by jgarte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants