joebobmiles / zustand-middleware-yjs

Zustand middleware that enables sharing of state between clients via Yjs.
MIT License
103 stars 10 forks source link

State resets when new peer joins #12

Closed joebobmiles closed 3 years ago

joebobmiles commented 3 years ago

Noticed this issue when working on the counter project. When a new peer joins the shared session, the shared state is overwritten by the new user's local state. This was something I figured out in YJSON, but forgot about in the mess that became setting up the Rollup bundling and getting the example counter project working.

joebobmiles commented 3 years ago

:tada: This issue has been resolved in version 1.2.1-rc.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

joebobmiles commented 3 years ago

:tada: This issue has been resolved in version 1.2.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: