Skip to content

Conversation

@keyz
Copy link
Contributor

@keyz keyz commented Jul 29, 2016

To be clear, SFCs already don't have lifecycle methods. This PR splits the code path and skips polymorphic lookups like if (inst.componentDidMount) { ... } so JS VMs can optimize things better (http://mrale.ph/blog/2015/01/11/whats-up-with-monomorphism.html).

},

performInitialMount: function(renderedElement, hostParent, hostContainerInfo, transaction, context) {
performInitialMount: function(hostParent, hostContainerInfo, transaction, context) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

should this method be private too?

@gaearon
Copy link
Collaborator

gaearon commented Oct 4, 2017

(We have an equivalent in Fiber)

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.

4 participants