Skip to content

Finish ReactGenericBatching#8405

Merged
sophiebits merged 1 commit intofacebook:masterfrom
sophiebits:generic-batching
Nov 24, 2016
Merged

Finish ReactGenericBatching#8405
sophiebits merged 1 commit intofacebook:masterfrom
sophiebits:generic-batching

Conversation

@sophiebits
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

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
Copy Markdown
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.

3 participants