Skip to content

Conversation

@sebmarkbage
Copy link
Contributor

This fixes controlled components after I broke them in. #8607

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.

);
const props = EventPluginUtils.getFiberCurrentPropsFromNode(
internalInstance.stateNode
);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only change. The rest is renames.

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.
@sebmarkbage sebmarkbage merged commit 4f8c16a into facebook:master Jan 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants