Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cc87b0f8e6 | |||
| 58984594b0 | |||
| 61675e1085 |
@@ -113,14 +113,14 @@ export function usePwaUpdate() {
|
||||
})
|
||||
|
||||
setNeedRefreshRef.current = setNeedRefresh
|
||||
if (pendingNeedRefreshRef.current !== null) {
|
||||
setNeedRefresh(pendingNeedRefreshRef.current)
|
||||
pendingNeedRefreshRef.current = null
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
if (isUpdateSuppressed()) {
|
||||
setNeedRefresh(false)
|
||||
} else if (pendingNeedRefreshRef.current !== null) {
|
||||
const pending = pendingNeedRefreshRef.current
|
||||
pendingNeedRefreshRef.current = null
|
||||
setNeedRefresh(pending)
|
||||
}
|
||||
|
||||
void isDeployedVersionNewer().then((outdated) => {
|
||||
|
||||
Reference in New Issue
Block a user