mutativejs / zustand-mutative

A Mutative middleware for Zustand enhances the efficiency of immutable state updates.
MIT License
78 stars 0 forks source link

Time travel #1

Open universse opened 4 months ago

universse commented 4 months ago

Hi, is there a possibility to have time travel functionality using this package, similar to use-travel?

unadlib commented 4 months ago

@universse We might consider implementing it, however, it may appear as a separate lib.

universse commented 4 months ago

cool. that's even better actually. was wondering why the core functionality was not a separate lib instead of being tied to react.

unadlib commented 4 months ago

Perhaps there might be a very small portion of logic that is similar, but overall, the implementation logic of these time travels varies depending on the update method of the third-party state lib.