eligius
    Preparing search index...

    Variable loadFromStorageConst

    loadFromStorage: TOperation<
        ILoadFromStorageOperationData,
        Omit<ILoadFromStorageOperationData, "storageType">,
    > = ...

    Loads data from browser storage (localStorage or sessionStorage).

    Deserializes the stored JSON value. Returns null if key doesn't exist.

    Operation data with loadedValue containing the deserialized data

    // Load user settings from localStorage
    const result = loadFromStorage({
    key: 'user-settings',
    storageType: 'local'
    });
    // result.loadedValue = { theme: 'dark', language: 'en' }
    // Load session data
    const result = loadFromStorage({
    key: 'session-id',
    storageType: 'session'
    });
    // result.loadedValue = 'abc123' or null if not found