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
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
The text was updated successfully, but these errors were encountered:
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: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
onSynced
handlersynced
emit on initial syncsynced
emitted againExpected behavior
synced
should only be emitted on initial syncThe text was updated successfully, but these errors were encountered: