dillon1000/react

Commit

Hack to recover from reading the wrong Fiber (#33055)

`requestFormReset` incorrectly tries to get the current dispatch queue
from the Fiber. However, the Fiber might be the workInProgress which is
an inconsistent state.

This hack just tries the other Fiber if it detects one of the known
inconsistent states but there can be more.

Really we should stash the dispatch queue somewhere stateful which is
effectively what `setState` does by binding it to the closure.
Browse files
Changed paths1 file
First-parent comparison
M packages/react-reconciler/src/ReactFiberHooks.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…