Skip to content

Conversation

@acdlite
Copy link
Collaborator

@acdlite acdlite commented Jan 30, 2017

Fixes a few mores tests.

Also uncovered an oversight in the reconciler related to portals; was missing a portal case in updateSlot.

} = ReactTypeOfSideEffect;

const {
getComponentName,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Only need this in DEV

' If you meant to render a collection of children, use an array ' +
'instead or wrap the object using createFragment(object) from the ' +
'React add-ons.';
if (newChild._isReactElement) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't need this check any more; it's legacy. You can delete it and the test if you want.

Won't work if the returnFiber is a fragment. Not sure it matters;
warning will just be less descriptive.
Preserves Stack behavior. There's already a warning for this.
@acdlite acdlite force-pushed the fiberfragmentinvariants branch from 621337e to 2a0fb5b Compare January 31, 2017 19:46
@acdlite acdlite merged commit 35ddd05 into facebook:master Jan 31, 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