We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b57715d commit 47751e6Copy full SHA for 47751e6
src/App.tsx
@@ -190,7 +190,8 @@ export default function App() {
190
function update() {
191
updateServiceWorker(true)
192
// Trigger page reload
193
- //window.location.reload()
+ window.location.reload()
194
+ setTimeout(() => {}, 500)
195
}
196
197
function onUpdate() {
@@ -214,6 +215,10 @@ export default function App() {
214
215
useEffect(() => {
216
if (needRefresh) {
217
update()
218
+ } else {
219
+ if (toast.isActive(updateToastRef.current)) {
220
+ toast.dismiss(updateToastRef.current)
221
+ }
222
223
}, [location])
224
0 commit comments