fix: update dependency array in AppContent useEffect to when to show there is update
https://github.com/donetick/donetick/issues/521
This commit is contained in:
@@ -78,7 +78,8 @@ const AppContent = () => {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}, [needRefresh, showNotification, updateServiceWorker, setNeedRefresh])
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, [needRefresh])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user