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
The parent component rerenders even if the state remains unchanged.
When the parent component rerenders only due to unchanged state, the child component does not rerender.
If the value of state has been changed, the child components are rerendered.
The expected behavior
The parent component should not rerender if the state remains unchanged.
If the parent component rerenders, the child component should also rerender.