Skip to content

Conversation

@sophiebits
Copy link
Collaborator

...when calling setState from within a componentWillMount. Fixes #1866.

Test Plan: jest

...when calling setState from within a componentWillMount. Fixes facebook#1866.

Test Plan: jest
Copy link
Member

Choose a reason for hiding this comment

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

var allUnmounted = dirtyComponents.some((dC) => dc.isMounted()) (that should break out early).

Let's not do that this second so we can move fast, but it's so pretty and short :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I thought of it and figured that might be slower.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍 for Array.some 😄

zpao added a commit that referenced this pull request Jul 18, 2014
Don't initialize reconcile transaction on server
@zpao zpao merged commit 9929f6d into facebook:master Jul 18, 2014
@xionon xionon mentioned this pull request Jul 20, 2014
2 tasks
@zpao zpao mentioned this pull request Jul 23, 2014
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ReferenceError: document is not defined

3 participants