cockpit-plugin-base-react - v1.1.1
    Preparing search index...

    Interface LocalStorageOptions<T>

    interface LocalStorageOptions<T> {
        crossTabSync?: boolean;
        deserialize?: (raw: string) => T;
        serialize?: (value: T) => string;
    }

    Type Parameters

    • T
    Index

    Properties

    crossTabSync?: boolean

    When true, subscribes to StorageEvent to stay in sync across browser tabs.

    deserialize?: (raw: string) => T
    serialize?: (value: T) => string