-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Heading: Remove anchor map when block unmounts #35761
Conversation
Size Change: +7 B (0%) Total Size: 1.07 MB
ℹ️ View Unchanged
|
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.
Makes sense - thanks!
I noticed there is an undo trap when we transform a block to heading.. It's not related to this PR but it's this effect that makes the trap
Thanks, Nik. I also noticed the "undo trap" as well after creating this PR. I'll have another one ready for it shortly 👍 |
Description
Viewing Header block transformation adds anchor to the object map. Therefore, it can cause incorrect anchor generation when the block is transformed.
PR adds
useEffect
cleanup to remove the mapping.I noticed this issue while investigating flaky Quote block tests.
To reproduce failing tests, run e2e in interactive mode on
trunk
:Fixes #35623.
Fixes #35644.
Fixes #35707.
Fixes #35748.
How has this been tested?
Types of changes
Bugfix
Checklist:
*.native.js
files for terms that need renaming or removal).