@laserware/stasis
    Preparing search index...

    Interface ConfigureStoreOptions<S, A, M, E, P>

    Options for configureStore().

    interface ConfigureStoreOptions<
        S = any,
        A extends Action = UnknownAction,
        M extends Tuple<Middlewares<S>> = Tuple<Middlewares<S>>,
        E extends Tuple<Enhancers> = Tuple<Enhancers>,
        P = S,
    > {
        devTools?: boolean | DevToolsEnhancerOptions;
        duplicateMiddlewareCheck?: boolean;
        enhancers?: (getDefaultEnhancers: GetDefaultEnhancers<M>) => E;
        middleware?: (getDefaultMiddleware: GetDefaultMiddleware<S>) => M;
        preloadedState?: P;
        reducer: Reducer<S, A, P> | ReducersMapObject<S, A, P>;
    }

    Type Parameters

    • S = any
    • A extends Action = UnknownAction
    • M extends Tuple<Middlewares<S>> = Tuple<Middlewares<S>>
    • E extends Tuple<Enhancers> = Tuple<Enhancers>
    • P = S
    Index

    Properties

    devTools?: boolean | DevToolsEnhancerOptions

    Whether to enable Redux DevTools integration. Defaults to true.

    Additional configuration can be done by passing Redux DevTools options

    duplicateMiddlewareCheck?: boolean

    Whether to check for duplicate middleware instances. Defaults to true.

    enhancers?: (getDefaultEnhancers: GetDefaultEnhancers<M>) => E

    The store enhancers to apply. See Redux's createStore(). All enhancers will be included before the DevTools Extension enhancer. If you need to customize the order of enhancers, supply a callback function that will receive a getDefaultEnhancers function that returns a Tuple, and should return a Tuple of enhancers (such as getDefaultEnhancers().concat(offline)). If you only need to add middleware, you can use the middleware parameter instead.

    middleware?: (getDefaultMiddleware: GetDefaultMiddleware<S>) => M

    An array of Redux middleware to install, or a callback receiving getDefaultMiddleware and returning a Tuple of middleware. If not supplied, defaults to the set of middleware returned by getDefaultMiddleware().

    `middleware: (gDM) => gDM().concat(logger, apiMiddleware, yourCustomMiddleware)`
    
    preloadedState?: P

    The initial state, same as Redux's createStore. You may optionally specify it to hydrate the state from the server in universal apps, or to restore a previously serialized user session. If you use combineReducers() to produce the root reducer function (either directly or indirectly by passing an object as reducer), this must be an object with the same shape as the reducer map keys.

    reducer: Reducer<S, A, P> | ReducersMapObject<S, A, P>

    A single reducer function that will be used as the root reducer, or an object of slice reducers that will be passed to combineReducers().