@laserware/stasis
    Preparing search index...

    Interface SerializableStateInvariantMiddlewareOptions

    Options for createSerializableStateInvariantMiddleware().

    interface SerializableStateInvariantMiddlewareOptions {
        disableCache?: boolean;
        getEntries?: (value: any) => [string, any][];
        ignoreActions?: boolean;
        ignoredActionPaths?: (string | RegExp)[];
        ignoredActions?: string[];
        ignoredPaths?: (string | RegExp)[];
        ignoreState?: boolean;
        isSerializable?: (value: any) => boolean;
        warnAfter?: number;
    }
    Index

    Properties

    disableCache?: boolean

    Opt out of caching the results. The cache uses a WeakSet and speeds up repeated checking processes. The cache is automatically disabled if no browser support for WeakSet is present.

    getEntries?: (value: any) => [string, any][]

    The function that will be used to retrieve entries from each value. If unspecified, Object.entries will be used. Defaults to undefined.

    ignoreActions?: boolean

    Opt out of checking actions. When set to true, other action-related params will be ignored.

    ignoredActionPaths?: (string | RegExp)[]

    An array of dot-separated path strings or regular expressions to ignore when checking for serializability, Defaults to ['meta.arg', 'meta.baseQueryMeta']

    ignoredActions?: string[]

    An array of action types to ignore when checking for serializability. Defaults to []

    ignoredPaths?: (string | RegExp)[]

    An array of dot-separated path strings or regular expressions to ignore when checking for serializability, Defaults to []

    ignoreState?: boolean

    Opt out of checking state. When set to true, other state-related params will be ignored.

    isSerializable?: (value: any) => boolean

    The function to check if a value is considered serializable. This function is applied recursively to every value contained in the state. Defaults to isPlain().

    warnAfter?: number

    Execution time warning threshold. If the middleware takes longer than warnAfter ms, a warning will be displayed in the console. Defaults to 32ms.