react-abac icon indicating copy to clipboard operation
react-abac copied to clipboard

Child components get rendering forcefully

Open RohitParte opened this issue 3 years ago • 0 comments

Issue is If we have multiple nested components like

child 1 and child 2 is unnecessarily rendering number of times as parent rendering. And due to this if any child has api calls on load then that api is hitting that many times.

Somehow, child components get rendering forcefully by Yes function, Please look at below screenshot. image

I did some testing on it. If we remove highlighted line and just return children then it is working fine. image

RohitParte avatar Jan 28 '22 07:01 RohitParte