Render-phase change detection used to reset local state when a prop or context value changes, without an effect.
Render-phase change detection used to reset local state when a prop or context value changes, without an effect.