Skip to content

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
Member

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