Skip to main content

Interface: IRouterOptions

router.IRouterOptions

Hierarchy

  • IRouterOptions

    IRouterOptions

Properties

autoCreateHistory

Optional autoCreateHistory: boolean

auto create history and handle middleware

Inherited from

IBaseRouterOptions.autoCreateHistory

Defined in

packages/reactant-router/src/router.tsx:42


autoProvide

Optional autoProvide: boolean

Auto provider injection.

Inherited from

IBaseRouterOptions.autoProvide

Defined in

packages/reactant-router/src/router.tsx:38


createHistory

createHistory: () => History<unknown>

Type declaration

▸ (): History<unknown>

create history for router, use createHashHistory/createBrowserHistory/createMemoryHistory

Returns

History<unknown>

Inherited from

IBaseRouterOptions.createHistory

Defined in

packages/reactant-router/src/router.tsx:34


defaultRoute

Optional defaultRoute: string

default initial route

Defined in

packages/reactant-share/src/router.ts:41