charkour / zundo

🍜 undo/redo middleware for zustand. <700 bytes
https://codesandbox.io/s/zundo-2dom9
MIT License
616 stars 20 forks source link

fix spying on wrong function #169

Closed charkour closed 7 months ago

charkour commented 7 months ago

In the scope of this test, only console.error is defined.

Any time the temporal store's setter is called, console.error should be called.