Fix call to setInterval (#22357)
This commit is contained in:
parent
fa138358e1
commit
02f38c5ca8
1 changed files with 1 additions and 1 deletions
|
@ -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 />
|
||||||
|
|
Loading…
Reference in a new issue