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
Consider the following where both components are connected to a store:
<Parent>
{hasChild && <Child />}
</Parent>
hasChild is a parent prop that is received from store.
If a single action changes both hasChild and a separate property that affects the child, first Child's render is called and only then Parent's render is called removing Child from the tree (unlike normal react flow)
Currently I used shouldComponentUpdate in Child to prevent redundant renders, but that involves implementing shouldComponentUpdate in every case.