|
|
|
|
|
by strogonoff
564 days ago
|
|
> your usePartOfTheContext() would re-render every time the useContext() inside did, not helping with avoiding re-renders If a hook returns the same value with a stable reference across renders, and it is passed as a prop to some downstream components, it does not matter whether the hook itself uses context or not: for downstream components, prop did not change and no render can be triggered. |
|