Skip to content

Conversation

@sophiebits
Copy link
Collaborator

(With #573, the tests pass.)

sophiebits added a commit to sophiebits/react that referenced this pull request Nov 20, 2013
Depends on facebook#575; fixes facebook#570.  Now we'll be in trouble if someone tries to share objects between calls to getDefaultProps but that was already true of getInitialState and I haven't heard any complaints there.

This is the same number of allocations as before; we're just copying props in the other direction. (In any case, the copy happens only on mount and there are a couple dozen costlier things we're doing already at that time.)
Copy link
Contributor

Choose a reason for hiding this comment

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

This was confusing until I read the other comment. Maybe change this to say, "[...] because it's possible for a component to have a null owner. If this._owner === this._pendingOwner, that means there's no owner change pending."

petehunt added a commit that referenced this pull request Nov 22, 2013
Move __owner__ off of props
@petehunt petehunt merged commit d51ae6b into facebook:master Nov 22, 2013
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.

3 participants