You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been working on a multi-player collaborative environment in React and Redux, and had been looking forward to making use of Yjs. But I learned that Yjs has very few integrations with state-management libraries in the React ecosystem (there's one for Svelte, but that'd be another rewrite). After digging around the Yjs community, I learned about zustand-yjs, but I wasn't satisfied with how it worked.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I've been working on a multi-player collaborative environment in React and Redux, and had been looking forward to making use of Yjs. But I learned that Yjs has very few integrations with state-management libraries in the React ecosystem (there's one for Svelte, but that'd be another rewrite). After digging around the Yjs community, I learned about
zustand-yjs
, but I wasn't satisfied with how it worked.So, after a failed attempt at making an abstraction layer for Yjs, I started building a middleware for Zustand that allows any Zustand store to be backed by Yjs shared types. The current state of the library is pre-alpha, but it is an MVP that allows for sharing and updating of nested state, as well as working with complex data such as arrays of objects.
Let me know what you think!
Beta Was this translation helpful? Give feedback.
All reactions