Function createRouteParamsManager
- createRouteParamsManager<T, I>(routes, history): {
clear: void;
(): null | T;
} 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 | T;
}
- The function that returns the current route parameters object.
- (): null | T
Returns null | T
clear: void
Creates a route parameters manager.