-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(navigation): resolve performance issue (#1092)
The `blur`, `focus`, and `state` listeners all can perform heavy dom mutations. Performing them at the same time the screen is rendering and transitioning can cause delays or visual glitches. To resolve, these listeners are delayed a small amount. The use of `setTimeout` enables waiting for the screen to render before mutating the dom. The `navStateMutationsDelay` experiment value is used to enable the timeout. If the experiment is not set or has a value of "0", no timeout is used. See 35499d9 | Before | After | | -- | -- | |  |  | [Asana](https://app.asana.com/0/1204008699308084/1209403666139702)
- Loading branch information
1 parent
99f2b11
commit 248e31a
Showing
5 changed files
with
56 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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