dillon1000/react

Commit

Read "current" props from the node instead of the Fiber (#8839)

It's not just events that read the current props. Controlled components
do as well. Since we're no longer updating the Fiber pointer during updates
we have to instead read from the node props to get the current props.

Since this method is no longer just used for events I renamed it.
Browse files
Changed paths9 files
First-parent comparison
M scripts/fiber/tests-failing.txt ModifiedM scripts/fiber/tests-passing.txt ModifiedM src/renderers/dom/fiber/ReactDOMFiber.js ModifiedM src/renderers/dom/shared/ReactDOMComponentTree.js ModifiedM src/renderers/native/ReactNativeComponentTree.js ModifiedM src/renderers/native/ReactNativeFiber.js ModifiedM src/renderers/shared/shared/event/EventPluginHub.js ModifiedM src/renderers/shared/shared/event/EventPluginUtils.js ModifiedM src/renderers/shared/shared/event/ReactControlledComponent.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…