@consumidor-positivo/ts-utils - v1.13.0
    Preparing search index...

    Interface UsePersistedStateOptions

    Options for the usePersistedState hook.

    interface UsePersistedStateOptions {
        storage?: "local" | "session";
    }
    Index

    Properties

    Properties

    storage?: "local" | "session"

    Type of storage to be used ('local' or 'session').

    • 'local': data persists even after the browser is closed (localStorage)
    • 'session': data persists only during the current session (sessionStorage)
    'local'