TiptapCollabProvider last synced #5748
-
If in a collaborative editor, the current user starts editing the document, is there a way to get the sync status? Something like "syncing" when the doc is being edited, and then "synced" when user stops writing and the data has been saved successfully in the cloud. |
Beta Was this translation helpful? Give feedback.
Answered by
nperez0111
Oct 22, 2024
Replies: 1 comment
-
On the Hocuspocus/TiptapCollab provider there should be a |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nperez0111
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On the Hocuspocus/TiptapCollab provider there should be a
hasUnsyncedChanges
which indicates whether there are changes that are not yet synced. You could either poll this field or try to read it on an event likeonMessage
or whenever your editor makes changes