ra-core
Version:
Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React
16 lines • 651 B
TypeScript
import type { RouterProvider } from "./RouterProvider.js";
/**
* Context for providing the router provider throughout the application.
* Defaults to react-router provider, so existing apps work without changes.
*/
export declare const RouterProviderContext: import("react").Context<RouterProvider>;
/**
* Hook to access the current router provider.
* Used internally by ra-core hooks and components to access routing primitives.
*
* @example
* const provider = useRouterProvider();
* const location = provider.useLocation();
*/
export declare const useRouterProvider: () => RouterProvider;
//# sourceMappingURL=RouterProviderContext.d.ts.map