Files
react/packages
Andrew Clark 95bd7aad7d Remove renderPhaseUpdates Map (#17625)
* Remove renderPhaseUpdates Map

Follow up to #17484, which was reverted due to a bug found in www.

* Failing test: Dropped updates

When resetting render phase updates after a throw, we should only clear
the pending queue of hooks that were already processed.

* Fix non-render-phase updates being dropped

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.

* Regression test: startTransition in render phase

useTransition uses the state hook as part of its implementation, so we
need to fork it in the dispatcher used for re-renders, too.
2020-01-17 16:00:35 -05:00
..
2020-01-09 14:50:44 +00:00
2020-01-09 13:54:11 +00:00
2020-01-09 14:50:44 +00:00
2020-01-09 14:50:44 +00:00
2020-01-09 14:50:44 +00:00
2020-01-12 17:54:30 +00:00
2020-01-09 14:50:44 +00:00
2020-01-09 14:50:44 +00:00
2020-01-09 13:54:11 +00:00