You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cache completes when the page is working properly, I install PWA and then refresh the page:
First I see the message onRegisteredSW in the console.
I see a few network requests.
I see the onRegisteredSW message again.
As a result, the libraries I am using start giving errors.
I'm not sure if the problem is that I misused this library and onRegisteredSW works twice. But the problem only occurs when I give the files via sw and cache.
There is no way, but it seems you cannot have any side effect in any module or importing any module with side effects, no idea if it is a react problem: I changed all src root modules to use dynamic import and still monaco loaded in the root dist module.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
The cache completes when the page is working properly, I install PWA and then refresh the page:
onRegisteredSW
in the console.onRegisteredSW
message again.As a result, the libraries I am using start giving errors.
I'm not sure if the problem is that I misused this library and
onRegisteredSW
works twice. But the problem only occurs when I give the files via sw and cache.main.ts
vite.config.ts
Demo: https://jside.vercel.app/
Warning
Approximately ~65MB of files will be cached when you use the demo.
Beta Was this translation helpful? Give feedback.
All reactions