-
Notifications
You must be signed in to change notification settings - Fork 219
fix(OverlayTrigger): delay update for overlay trigger to avoid infinite loop #5012
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
Conversation
|
Branch previewReview the following VRT differencesWhen a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:
If the changes are expected, update the |
Lighthouse scores
What is this?Lighthouse scores comparing the documentation site built from the PR ("Branch") to that of the production documentation site ("Latest") and the build currently on Transfer Size
Request Count
|
Pull Request Test Coverage Report for Build 13555636806Details
💛 - Coveralls |
Tachometer resultsCurrently, no packages are changed by this PR... |
This introduces a noticeable "jumpy" effect on a couple of examples: |
@rubencarvalho can you clarify the jump? I could see how this change could introduce a jump but I wasn't able to see one at all. If it is a problem we could also look to see if restricting the delay to initial render would still fix the issue. Here is a video of what I'm seeing comparing Storybook on main and this branch for the two stories you called out. SWC-Difference.mov |
@jcmitch can you include some testing guidance that section seems to have been removed and only manually tested in Adobe Express. Also we will need to add automated testing to cover this in CI so we cover regression. |
Description
Overlay Trigger has potential to get into an infinite loop on initial render. This PR adds a delay using
requestAnimationFrame
to avoid this issue. As discussed in person this does not solve the root cause but finding that will require a deeper dive by the core SWC team.Related issue(s)
Motivation and context
Resolves an issue related to endless render loop.
How has this been tested?
Manual testing in Adobe Express
Screenshots (if appropriate)
N/A
Types of changes
Checklist
Best practices
This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against
main
.