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)