feat: better error message
This commit is contained in:
@@ -80,6 +80,14 @@ function Root() {
|
||||
check_validity(data => dispatch({type: 'init', val: data}))
|
||||
}, []);
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
const interval = setInterval(() => {
|
||||
check_validity(data => dispatch({type: 'update', val: data}))
|
||||
}, 1000 * 60 * 9)
|
||||
return () => clearInterval(interval)
|
||||
}, []);
|
||||
|
||||
return <>
|
||||
<header>
|
||||
<Nav/>
|
||||
|
||||
Reference in New Issue
Block a user