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)