MediumScenarioReact and architecture scenarios
A context value changes often and re-renders the whole tree. Fix?
What a good answer covers
Split contexts, memoise values, move state down, or use a store with selectors such as Zustand.
PreviousA shared React component library change breaks three apps. How do you prevent this?Next When should you use useMemo and useCallback?