Skip to content
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

A why-did-you-render devtool addon #38

Closed
adelin-b opened this issue Jun 9, 2019 · 2 comments
Closed

A why-did-you-render devtool addon #38

adelin-b opened this issue Jun 9, 2019 · 2 comments
Labels
question Further information is requested

Comments

@adelin-b
Copy link

adelin-b commented Jun 9, 2019

Someone posted this on reddit :
https://www.reddit.com/r/reactjs/comments/byl39e/new_devtools_profiler_answers_the_question_why/

I thouhgt that maybe you two could have a talk.

@vzaidman
Copy link
Collaborator

Thanks we scheduled a meeting already :)

@vzaidman vzaidman added the question Further information is requested label Sep 9, 2019
@vzaidman
Copy link
Collaborator

In short the difference between the "devtool addon" and this library is the library operates in "push mode" where as the addon operates in "pull mode":

  • push mode: you mark "huge" components with whyDidYouRender = true and proceed to work on your stuff. after some time suddenly you get notifications about the huge component being re-rendered.
  • pull mode: you intentionally investigate performance issues and intentionally want to check why a specific component is re-rendered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants