• A tiny wrapper for the makeStore() function. It sends the received Next.js context to nextReduxCookieMiddleware on the server via a SERVE_COOKIES action.

    Use it like this:

    export const wrapper = createWrapper<AppStore>(wrapMakeStore(makeStore));
    

    Returns

    A wrapped version of the makeStore() function

    Type Parameters

    • S extends Store<any, AnyAction, S>

    Parameters

    • makeStore: MakeStore<S>

      The makeStore() function for next-redux-wrapper

    Returns ((context: Context) => S)

      • (context: Context): S
      • Parameters

        • context: Context

        Returns S

Generated using TypeDoc