This example does just that:
CarChecker - a Blazor sample app
There is a video where he explains how it works on Channel 9: Modern Web UI with Blazor WebAssembly
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have seen so many web app that supports offline. Like IF internet is not available but still use can post and update data into webapp
and then move to online database sql after webapp goes online.
Can we implement this Blazor WASM connect sqlite or with IndexedDB and post offline changes to online database?
This example does just that:
CarChecker - a Blazor sample app
There is a video where he explains how it works on Channel 9: Modern Web UI with Blazor WebAssembly
The sample blazor app uses local storage via JavaScript interop for offline support. But it requires the app to be running to do the upload.
A more common approach is to use a service worker that does the upload in the background, so the app does not need to be running. A service worker can also cache requests, so you can keep all the logic in one place. As blazor httpclient uses JavaScript interop to fetch data, it works perfectly with service workers.