Time Travel
Regarding time travel, we will later bring a iflow-devtools
its feature, which will be based on iFlow middleware.
If you are interested in developing it, you can contact us
Approximate implementation process:
By
initStateTree = getstate(store)
After being initialized in the store, get the initialized version of the store state tree.Using the
addObserver
middleware to get the setter Path, each time theinitStateTree
merge operation, if necessary can carry outObject.freeze
, to complete a true sense of immutable time travel.