Skip to content

fix: do not reconcile children that are iterable functions#13416

Merged
gaearon merged 4 commits intofacebook:masterfrom
raunofreiberg:ignore-iterable-functions
Aug 16, 2018
Merged

fix: do not reconcile children that are iterable functions#13416
gaearon merged 4 commits intofacebook:masterfrom
raunofreiberg:ignore-iterable-functions

Conversation

@raunofreiberg
Copy link
Contributor

#11396.

Does this seem reasonable? Should we also add a warning?

if (
maybeIterable === null ||
typeof maybeIterable === 'undefined' ||
typeof maybeIterable === 'function'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe just typeof maybeIterable !== 'object'?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense.

if (maybeIterable === null || typeof maybeIterable === 'undefined') {
if (
maybeIterable === null ||
typeof maybeIterable === 'undefined' ||
Copy link
Collaborator

Choose a reason for hiding this comment

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

You don't need this check now.

@gaearon gaearon merged commit 77b7a66 into facebook:master Aug 16, 2018
@gaearon
Copy link
Collaborator

gaearon commented Aug 16, 2018

Looks good. Thanks.

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