FSH.OfflineSync
π A plug-and-play offline sync library for Blazor WebAssembly + FullStackHero
A new amazing package _
π§ͺ _Sample Scenario: Offline Order Submission
User fills a form in offline mode
Clicks Submit "Post/Put/Delete" β request is stored locally
App comes online again
On "Get" request βresponse is stored locally
App can use it anytime while it offline
All stored requests are sent to the backend transparently
π¦ Installation
dotnet add package FSH.OfflineSync
π Getting Started
- Add the following to your Program.cs:
builder.Services.AddOfflineSyncHttpClient(builder.Configuration, options =>
{
options.AuthTokenKey = StorageConstants.Local.AuthToken; // or "authToken" Or StorageConstants.Local.AuthToken for FullStackHero
});
Top comments (0)