Table of Contents

Class NullStatePersistence

Namespace
BlazOrbit.Components
Assembly
BlazOrbit.dll

No-op persistence — every LoadAsync(string) returns null, every save is dropped. Default registration.

public sealed class NullStatePersistence : IDataCollectionStatePersistence
Inheritance
object
NullStatePersistence
Implements

Constructors

NullStatePersistence()

public NullStatePersistence()

Methods

LoadAsync(string)

Reads a previously persisted snapshot. Returns null when no payload is stored, the entry is malformed, or the underlying storage is unavailable (e.g. SSR without a JS runtime).

public ValueTask<string?> LoadAsync(string key)

Parameters

key string

Returns

ValueTask<string>

SaveAsync(string, string)

Persists a JSON-shaped payload under key. Implementations swallow transient storage failures so consumers don't need to wrap each call in a try/catch.

public ValueTask SaveAsync(string key, string payload)

Parameters

key string
payload string

Returns

ValueTask