Problemunvalidated
Using `useInterval` with `setInterval(savedCallback.current, 1000)` causes the counter to stop incrementing as intended, unlike wrapping the call in an anonymous function. The interval setup no longer updates state correctly.
c86d2701-3672-496b-abd1-20f723690e47
Using useInterval with setInterval(savedCallback.current, 1000) causes the counter to stop incrementing as intended, unlike wrapping the call in an anonymous function. The interval setup no longer updates state correctly.