interface MemoryRouterOpts {
    basename?: string;
    dataStrategy?: DataStrategyFunction<any>;
    future?: Partial<FutureConfig>;
    hydrationData?: Partial<Pick<RouterState, "loaderData" | "actionData" | "errors">>;
    initialEntries?: InitialEntry[];
    initialIndex?: number;
    patchRoutesOnNavigation?: PatchRoutesOnNavigationFunction;
    unstable_getContext?: (() => MaybePromise<unstable_InitialContext>);
}

Properties

basename?: string

Basename path for the application.

dataStrategy?: DataStrategyFunction<any>

Override the default data strategy of loading in parallel. Only intended for advanced usage.

future?: Partial<FutureConfig>

Future flags to enable for the router.

hydrationData?: Partial<Pick<RouterState, "loaderData" | "actionData" | "errors">>

Hydration data to initialize the router with if you have already performed data loading on the server.

initialEntries?: InitialEntry[]

Initial entires in the in-memory history stack

initialIndex?: number

Index of initialEntries the application should initialize to

patchRoutesOnNavigation?: PatchRoutesOnNavigationFunction

Lazily define portions of the route tree on navigations.

unstable_getContext?: (() => MaybePromise<unstable_InitialContext>)

Function to provide the initial context values for all client side navigations/fetches