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

Mirror of facebook react#17625 #3

Open
wants to merge 4 commits into
base: pr17625-dst
Choose a base branch
from
Open

Mirror of facebook react#17625 #3

wants to merge 4 commits into from

Conversation

smagill
Copy link
Owner

@smagill smagill commented Dec 20, 2019

Mirror of facebook react#17625
Follow up to facebook#17484, which was reverted due to a bug found in www. (I haven't actually found this bug yet, still trying to repro.) Found and fixed

Also addresses a separate bug where updates that are thought to be render phase updates are cleared, but they are actually normal updates: facebook@8a347ed#r36440099

Follow up to facebook#17484, which was reverted due to a bug found in www.
When resetting render phase updates after a throw, we should only clear
the pending queue of hooks that were already processed.
Detects if a queue has been processed by whether the hook was cloned.
If we change the implementation to an array instead of a list, we'll
need some other mechanism to determine whether the hook was processed.
useTransition uses the state hook as part of its implementation, so we
need to fork it in the dispatcher used for re-renders, too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants