Function createRouteItemManager
- createRouteItemManager<T, I>(routes, history): {
clear: void;
(): null | I;
} Type Parameters
- T extends Record<string, any> = Record<string, any>
- I extends ISwitchItem = ISwitchItem
Parameters
- routes: I[]
- history: MemoryHistory | BrowserHistory | HashHistory
Returns {
clear: void;
(): null | I;
}
- A function that returns the current route item.
- (): null | I
Returns null | I
clear: void
A function that creates a route item manager.