fix(Page): disconnect MutationObserver after hash target is found#8007
Open
mr-baraiya wants to merge 6 commits intowebpack:mainfrom
Open
fix(Page): disconnect MutationObserver after hash target is found#8007mr-baraiya wants to merge 6 commits intowebpack:mainfrom
mr-baraiya wants to merge 6 commits intowebpack:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
alexander-akait
requested changes
Mar 13, 2026
Member
alexander-akait
left a comment
There was a problem hiding this comment.
You need to write cypress test for such things to ensure we don't break something
Contributor
Author
|
I've added Cypress tests to cover the behavior and fixed the ESLint issue ( |
Member
|
Here tests are failed too |
Contributor
Author
|
I’ve added the Cypress test and updated it to make the hash navigation behavior more stable. All checks are now passing. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The MutationObserver continued observing the DOM even after the hash target element was found.
This change disconnects the observer once the element is located, preventing unnecessary DOM observations.