RootCauseunvalidated
The interval callback is created once (due to `useEffect([])`), but `savedCallback.current` is updated in a separate `useEffect` without stable synchronization. Passing the function reference directly can capture or rely on an outdated/unsynchronized `savedCallback.current`, leading to stale state/behavior.
443bc530-4c22-471d-a84b-5648587bdfda
The interval callback is created once (due to useEffect([])), but savedCallback.current is updated in a separate useEffect without stable synchronization. Passing the function reference directly can capture or rely on an outdated/unsynchronized savedCallback.current, leading to stale state/behavior.