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
React has a behavior where re-rendering identical elements is equal to a no-op. A justification which I read on the internet but now can no longer find is that it makes children passed in via props not update when the child component is re-rendered. So in the following Timer Component, the children would be static as the seconds are updated.
This is compelling, but I need to think about edge-cases.
It would also be a slightly breaking change for anyone naughty enough to mutate and re-render Crank elements because those changes would no longer be rendered.
The text was updated successfully, but these errors were encountered:
React has a behavior where re-rendering identical elements is equal to a no-op. A justification which I read on the internet but now can no longer find is that it makes children passed in via props not update when the child component is re-rendered. So in the following Timer Component, the children would be static as the seconds are updated.
This is compelling, but I need to think about edge-cases.
It would also be a slightly breaking change for anyone naughty enough to mutate and re-render Crank elements because those changes would no longer be rendered.
The text was updated successfully, but these errors were encountered: