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

Implement hook state settling #219

Merged
merged 2 commits into from
Apr 29, 2022
Merged

Implement hook state settling #219

merged 2 commits into from
Apr 29, 2022

Conversation

developit
Copy link
Member

This implements hooks state "settling", where a function component that invokes setState/forceUpdate during rendering is re-invoked up to 25 times or until it stops invalidating during invocation.

The implementation here is for Preact 10, and will need to be updated to use Internal.flags in Preact 11 (however RTS is moved to core in 11).

Fixes #218.

@changeset-bot
Copy link

changeset-bot bot commented Apr 26, 2022

🦋 Changeset detected

Latest commit: 5e52737

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
preact-render-to-string Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@JoviDeCroock JoviDeCroock merged commit 250c15f into master Apr 29, 2022
@JoviDeCroock JoviDeCroock deleted the hook-rerendering branch April 29, 2022 08:03
@github-actions github-actions bot mentioned this pull request Apr 29, 2022
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.

setState discrepancy between preact-render-to-string and react-dom/server
3 participants