2 Comments
User's avatar
Marko Mijuskovic's avatar

Hey Patrick would this setup work if the Blazor app was running as a PWA inside a service worker?

Expand full comment
Patrick God's avatar

Hey Marko, I'm still pretty new to building PWAs with Blazor, but from what I’ve learned, the Auto mode should still work. On the first visit, the app runs on the server while the browser downloads the WebAssembly bundle. Those files get stored, so next time it runs from the browser and can work offline. Just remember, you need a connection for the first run and to use API calls instead of direct database access when offline. Hope that helps!

Expand full comment