Skip to content
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

Improve nested effect rerenders in act (-49 B) #1546

Merged
merged 1 commit into from
Apr 17, 2019
Merged

Conversation

andrewiggins
Copy link
Member

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.

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.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 1cae60b on improve-act into 4bcdb86 on master.

Copy link
Member

@JoviDeCroock JoviDeCroock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a way better solution 👍

Copy link
Member

@marvinhagemeister marvinhagemeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bytes are always scared of @andrewiggins ! Really awesome work 👍 💯

Copy link
Member

@cristianbote cristianbote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done! 🎉 😄

@JoviDeCroock JoviDeCroock merged commit 4645f11 into master Apr 17, 2019
@marvinhagemeister marvinhagemeister deleted the improve-act branch April 17, 2019 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants