Closed arvinxx closed 1 year ago
Wow, I can reproduce this everywhere but the Replay browser... Thankfully on Firefox, the error is a lot more verbose, and I know what check is failing.
I can't reproduce the bug using the code for the latest version (1.3.0-rc.1) with tests. My fork of the CodeSandbox with the latest version also does not exhibit this behavior, so this is fixed by my rewrite of how changes are computed and applied in that version. I'll work on fixing the other issues so the new version is ready.
Here is the demo:
the codesandbox: https://codesandbox.io/s/zustand-yjs-middleware-error-with-object-in-arrary-tmwfxz?file=/src/App.tsx
It casue when a object(arrary or object)set to undefined