rikhoffbauer/react-abac

Child components get rendering forcefully

RohitParte opened this issue ยท 1 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

๐ŸŽ‰ This issue has been resolved in version 0.1.11 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€