-
Notifications
You must be signed in to change notification settings - Fork 4.8k
RTC: Fix inner template multiple insertion #79021
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
Open
alecgeatches
wants to merge
13
commits into
trunk
Choose a base branch
from
fix/rtc-inner-template-sync2
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
210f868
Use __unstableMarkNextChangeAsCombinedOperation marker and deferred b…
alecgeatches c8c0f67
Move deferred block marker logic into withDeferredBlockSync reducer
alecgeatches e8972b9
Run deferred block logic in setTimeout instead of microtask so it run…
alecgeatches 474d08c
Remove inner block microtask and setTimeout workaround
alecgeatches fcebcae
Remove __unstableMarkNextChangeAsCombinedOperation, withDeferredBlock…
alecgeatches bed1725
Add specific test for ctrl+clicking quote block in insertion
alecgeatches e0c1a97
Scope defers more narrowly to replace block operations
alecgeatches c6d29c6
Fix block selection after legacy attribute migration for quotes and l…
alecgeatches ef7d688
Merge branch 'trunk' into fix/rtc-inner-template-sync2
alecgeatches 4a6431f
Mark inner-template-looking blocks with __unstableShouldDeferBlockSyn…
alecgeatches dbec054
Rename didLastBlockChangeAddBlocks to shouldLastBlockChangeDeferBlock…
alecgeatches b3b5795
Merge branch 'trunk' into fix/rtc-inner-template-sync2
alecgeatches 9d1b414
Merge branch 'trunk' into fix/rtc-inner-template-sync2
maxschmeling 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
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.
We could do this flushing more precisely. We don't want to flush all the pending updates for all blocks, but just for the
clientIdof the current block. Remove that one entry frompendingSettingsUpdatesand leave the other entries alone.I think this is a nice patch that's worth merging separately. Flushing is more elegant than deferring the entire template sync with
queueMicrotask. Even if we never merged the rest of the PR, this part is worth doing.