Closed knexer closed 1 year ago
I'm fairly sure the interval is restarting on every render, instead of starting on mount and ending on unmount. Probably different params to useEffect would solve that issue, or hosting the interval outside React.
I'm fairly sure the interval is restarting on every render, instead of starting on mount and ending on unmount. Probably different params to useEffect would solve that issue, or hosting the interval outside React.