POC to show that useNavigation is overrendering
In the Child2 component, React.memo is used to optimize rendering by preventing unnecessary re-renders unless its props change. The useCallback hook memoizes the handleNavigation function, ensuring it remains stable across renders and only changes if the navigate function changes. This optimization minimizes performance overhead while maintaining functionality, making the component more efficient in response to state changes in sibling components.
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be still under discussion. The issue was opened by Veeshavanachu and has received 0 comments.