Interface MemoryHistoryOptions

Options of createMemoryHistory.

interface MemoryHistoryOptions {
    base?: string | URL;
    initialEntries: Location[];
    searchParamsAdapter?: SearchParamsAdapter;
}

Hierarchy (view full)

Properties

base?: string | URL

A default URL base used by History.toURL.

initialEntries: Location[]

A non-empty array of initial history entries.

searchParamsAdapter?: SearchParamsAdapter

An adapter that extracts params from a URL search string and stringifies them back. By default, an adapter that relies on URLSearchParams is used.