charkour / zundo

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

Deep Merge #172

Open charkour opened 5 months ago

charkour commented 5 months ago

Can we add a merge option like persist middleware?

Could we update zustand core to take a merge function? https://github.com/pmndrs/zustand/blob/fc2f85afff28e2ec3247c146d9996beae6cd6517/src/vanilla.ts#L79