-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve nested effect rerenders in act (-49 B)
Currently `act` relies on a new internal option (`options.hooks`) to detect if a rerender queued up more effects to run. This PR removes `options.hooks` and instead detects if there are new effects to run by continuing to flush and rerender as long as `options.requestAnimationFrame` is invoked.
- Loading branch information
1 parent
4bcdb86
commit 1cae60b
Showing
2 changed files
with
17 additions
and
14 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