Fluxor.Blazor.Web.Persist 1.0.0.2

dotnet add package Fluxor.Blazor.Web.Persist --version 1.0.0.2
                    
NuGet\Install-Package Fluxor.Blazor.Web.Persist -Version 1.0.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Fluxor.Blazor.Web.Persist" Version="1.0.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fluxor.Blazor.Web.Persist" Version="1.0.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Fluxor.Blazor.Web.Persist" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Fluxor.Blazor.Web.Persist --version 1.0.0.2
                    
#r "nuget: Fluxor.Blazor.Web.Persist, 1.0.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Fluxor.Blazor.Web.Persist@1.0.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Fluxor.Blazor.Web.Persist&version=1.0.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Fluxor.Blazor.Web.Persist&version=1.0.0.2
                    
Install as a Cake Tool

Fluxor.Blazor.Web.Persist

This project is a library for persisting Fluxor state in Blazor applications. It provides functionality to save and restore the state of your Fluxor store, allowing you to maintain application state across page reloads or sessions.

Features

  • State Persistence: Automatically saves the state of your Fluxor store to local storage.
  • State Restoration: Restores the state from storage when the application starts, ensuring a seamless user experience.
  • Customizable Storage: Supports local storage and in the future session storage.
  • Integration with Fluxor: Easily integrates with the Fluxor state management library for Blazor applications.
  • Type Safety: Ensures type safety when persisting and restoring state, reducing runtime errors.
  • Event Handling: Allows you to handle events when state is saved or restored, enabling additional feature logic or side effects.

Getting Started

To get started with Fluxor.Blazor.Web.Persist, follow these steps:

  • Install the package via NuGet:
dotnet add package Fluxor.Blazor.Web.Persist
  • Include the namespace in your Blazor components or services where you want to use the persistence functionality:
using Fluxor.Blazor.Web.Persist;
  • Add the necessary services in your Program.cs or Startup.cs file:
builder.Services.AddFluxor(options => 
{
	options
		.ScanAssemblies(typeof(Program).Assembly)
		.UsePersistentStorage(options => options.PersistenceKey = "Fluxor.Blazor.Web.Persist");
});
  • Done! Your Fluxor store will now automatically persist its state to local storage.
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0.2 2,896 6/23/2025
1.0.0.1 145 6/23/2025
1.0.0 152 6/23/2025