New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What do "instances" in React.Perf correlate to? #4911

Closed
kkirby opened this Issue Sep 18, 2015 · 3 comments

Comments

Projects
None yet
4 participants
@kkirby

kkirby commented Sep 18, 2015

I'm having some issues trying to figure out what an instance is in reference to React.Perf. Do instances refer to the amount of times that component was created? Or does it refer to the amount of children components that the component created? Or something else entirely?

Thanks!

@sophiebits

This comment has been minimized.

Member

sophiebits commented Sep 24, 2015

Yes, just the number of times the component was created.

image

@sophiebits sophiebits closed this Sep 24, 2015

@faceyspacey

This comment has been minimized.

faceyspacey commented Apr 27, 2016

but why is the number so high often?

@gaearon

This comment has been minimized.

Member

gaearon commented Apr 27, 2016

Because the current implementation is buggy. In reality it reports the number of times render() has been called. This is being fixed in #6046. Since that code is being rewritten completely we won’t fix it in the existing version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment