Feature Request: ability to rescue onContentError in collaborative environments #7967
zackdotcomputer
started this conversation in
Feature Requests
Replies: 1 comment
|
Another option would be a |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
Currently the onContentError pathway as implemented by #5178 has a one-way function to destroy collaboration integrations for the editor in
disableCollaboration(). This is useful for situations where the user has performed a fundamentally invalid behavior. But in situations where the cause of an error is understood and could be recovered from, this does not leave a pathway to resolve the error without either:Instead, I would like to be able to somehow hold the collaboration layer until the data schema is in a rescued state, and then continue with syncing. I don't know enough about the internals of TipTap yet to suggest how this would be best implemented - my naive first thought would be a Promise return type for
onContentErrorthat could return a new content for the editor?Use Case
Specifically this is useful in our case where a nondeterministic system like an Agent creates edits to the document which are invalid but which can be rescued. We would like to avoid syncing these invalid edits to other users viewing the document, but we would also like to keep all users online.
Type
New feature
All reactions