Fix call to setInterval (#22357)

This commit is contained in:
Zorn 2021-04-19 15:10:18 -04:00 committed by GitHub
parent fa138358e1
commit 02f38c5ca8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@ import Examples from '../components/examples'
const Index = () => { const Index = () => {
const dispatch = useDispatch() const dispatch = useDispatch()
useEffect(() => { useEffect(() => {
setInterval(() => dispatch(startClock(), 1000)) setInterval(() => dispatch(startClock()), 1000)
}, [dispatch]) }, [dispatch])
return <Examples /> return <Examples />