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
And the CollaborationPlugin is also being mount in the same component that I have the useState and the providerFactory.
And the status state is being used below to show a message and to enable/disable the Editor.
However, when the setStatus is invoked (state changes), it seems to trigger the reconnection for the WebsocketProvider, causing an infinite loop, the status goes from Connecting -> Connected -> Disconnected -> Connecting -> Connected, etc.
Anyone knows how can I get it fixed? I basically want to change state accordingly to the connection status.
Thank you !
The text was updated successfully, but these errors were encountered:
Without a full repro that is easy to inspect, I don't think anyone will help you solve this. It's likely a violation or misunderstanding of the rules of react (either in your code or @lexical/yjs) but there's just not enough context here.
Hello everyone,
I am trying to show a message to users when the connection status with the WebSocket (using yjs) changes.
This is snippet of my component code:
And the
CollaborationPlugin
is also being mount in the same component that I have theuseState
and theproviderFactory
.And the
status
state is being used below to show a message and to enable/disable the Editor.However, when the
setStatus
is invoked (state changes), it seems to trigger the reconnection for the WebsocketProvider, causing an infinite loop, the status goes from Connecting -> Connected -> Disconnected -> Connecting -> Connected, etc.Anyone knows how can I get it fixed? I basically want to change state accordingly to the connection status.
Thank you !
The text was updated successfully, but these errors were encountered: