Open
Description
Description
Based on this line which triggers this setter, the provider emits a synced
event with { state: false }
on close.
This contradicts the expected behavior based on the docs which describe the synced
event as:
When the Y.js document is successfully synced (initially).
In general the { state }
of a synced event doesn't make sense to me, what does it mean when it is false?
Steps to reproduce the bug
- Construct a provider with an
onSynced
handler synced
emit on initial sync- Close provider
synced
emitted again
Expected behavior
synced
should only be emitted on initial sync