You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even tho the components you've written are all stateless components, they are still not treated as pure by React; which means that React will re-render them all even tho their props did not change.
I understand that Layout components like Container, Box should not behave this way otherwise child components would not be rendered at all. but leaf components such as Button etc would benefit from it ?
On way we could get around this here would be to implement the shouldComponentUpdate method and do a shallowCompare of the props.
The text was updated successfully, but these errors were encountered:
First, Thanks for the awesome work.
Even tho the components you've written are all stateless components, they are still not treated as pure by React; which means that React will re-render them all even tho their props did not change.
See facebook/react#5677
I understand that Layout components like Container, Box should not behave this way otherwise child components would not be rendered at all. but leaf components such as Button etc would benefit from it ?
On way we could get around this here would be to implement the shouldComponentUpdate method and do a shallowCompare of the props.
The text was updated successfully, but these errors were encountered: