DEV Community

Kyrilos adel
Kyrilos adel

Posted on

A plug-and-play offline sync library for Blazor WebAssembly + FullStackHero

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

  1. 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
});
Enter fullscreen mode Exit fullscreen mode

https://www.nuget.org/packages/FSH.OfflineSync/1.0.0

Top comments (0)