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

Finish ReactGenericBatching #8405

Merged
merged 1 commit into from
Nov 24, 2016
Merged

Conversation

sophiebits
Copy link
Collaborator

No description provided.

src/renderers/dom/shared/__tests__/ReactEventListener-test.js
* should batch between handlers from different roots
src/renderers/dom/shared/wrappers/__tests__/ReactDOMInput-test.js
* should control a value in reentrant events
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This fails but if restoreStateOfTarget gets the right props (in this case, from the alternate) then it passes.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't quite understand this. Why is this failing now? Are we waiting for another fix?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Before the updates weren't getting batched so the setState calls had different behavior. The test fails because the props here aren't correct and there is a TODO to fix it:

// TODO: Ensure that this instance is the current one. Props needs to be correct.

It looks like luck that the test passed before.

@sophiebits sophiebits merged commit 8791325 into facebook:master Nov 24, 2016
acusti pushed a commit to brandcast/react that referenced this pull request Mar 15, 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.

None yet

3 participants