-
-
Notifications
You must be signed in to change notification settings - Fork 764
Fix versioning diff re-render over suggestion docs; surface recovered sync errors #2989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Draft
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
b93ad0e
fix(core): resolve suggested-deletion ids against the pre-removal doc
YousefED b71d42e
fix(core): exclude suggested-deletion copies from change tracking
YousefED 29174fe
chore(core): document the blockCache limitation with suggested deletions
YousefED 7b29967
fix(xl-pdf-exporter): make React keys unique for styled text and blocks
YousefED 042f6fd
chore: upgrade @y/prosemirror to 2.0.0-7
YousefED 92a272a
feat(y): observe internal errors y-prosemirror recovered from
YousefED 818ce11
fix(y): defer comments thread-store subscribers out of the observer c…
YousefED d4df9f4
test(e2e): fail tests on console errors and recovered sync errors
YousefED 0cea85a
docs(examples): defer the gallery diff re-render out of the observer …
YousefED 16cc816
fix(examples): give the gallery's large-diff scenarios real block ids
YousefED fdc6f3b
Merge remote-tracking branch 'origin/main' into fix/versioning-diff-r…
YousefED 7d50589
test(math-block): update pdf snapshot for positional fragment keys
YousefED 2904965
test(e2e): allowlist ResizeObserver loop notices in the console guard
YousefED 21b60cb
test(e2e): include the error message in guard reports on all engines
YousefED File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we really do need this (which I do question design-wise if we should), then we should at least extract this to a separate utility that is a thunk, taking in the callback to execute, and returns a function which will defer the execution of that function until the next microtask.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do think it's an issue that the error of 1 editor breaks the other (because the error is triggered in the listener).
I'd say we either need:
try / catcharound the handler, and log + rethrow errors there manually (and / or callreportError?)Without any of these, we don't notice the error, but just get broken behavior (a stale diff editor that's not updated anymore).
fyi, The way to reproduce this issue is shown in the video at
Move paragraph upin this docPreferred solution?