mutativejs / zustand-mutative

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

Time travel #1

Open universse opened 6 months ago

universse commented 6 months ago

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

unadlib commented 6 months ago

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

universse commented 6 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 6 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.