Closed
Description
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.
Any ideas for a generic solution?
Metadata
Metadata
Assignees
Labels
No labels