Chok’s React Utilities
    Preparing search index...

    Type Alias StoreOptions

    Options to configure a pre-built store adapter.

    type StoreOptions = {
        expiryMs?: number | Duration;
        isValid?: (u: unknown) => boolean;
        key: string;
        persistTo: PersistTo;
    }
    Index

    Properties

    expiryMs?: number | Duration

    How long to wait before the value is considered expired.

    isValid?: (u: unknown) => boolean

    Returns true if the given value supposed to be of type T is valid.

    key: string

    Storage key to act as a namespace to store the data.

    persistTo: PersistTo

    Choose which pre-built store adapter to use.