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

Test renderer improvements #7258

Merged
merged 1 commit into from
Jul 13, 2016
Merged

Test renderer improvements #7258

merged 1 commit into from
Jul 13, 2016

Conversation

sophiebits
Copy link
Collaborator

Adds .update(newElement) and .unmount() and makes children reorders and composite type swapping work.

Part of #7148.

cc @josephsavona @cpojer @kentaromiura

Adds `.update(newElement)` and `.unmount()` and makes children reorders and composite type swapping work.

Part of facebook#7148.
@cpojer
Copy link
Contributor

cpojer commented Jul 13, 2016

awesome!

ReactTestComponent.prototype.getPublicInstance = function() {
// I can't say this makes a ton of sense but it seems better than throwing.
// Maybe we'll revise later if someone has a good use case.
return null;
Copy link
Contributor

Choose a reason for hiding this comment

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

would adding a warning call here be helpful to avoid any surprising behavior?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@iamdustan I think that would probably be overly noisy.

@josephsavona
Copy link
Contributor

Thanks!!

@zpao zpao added this to the 15-next milestone Jul 13, 2016
@zpao zpao modified the milestones: 15-next, 15.3.0 Jul 13, 2016
zpao pushed a commit that referenced this pull request Jul 13, 2016
Adds `.update(newElement)` and `.unmount()` and makes children reorders and composite type swapping work.

Part of #7148.
(cherry picked from commit caec8d5)
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.

7 participants