UNPKG

761 BTypeScriptView Raw
1
2//#region lib/router/matcher-route-pattern.preload.d.ts
3/**
4 * Initialize the route-pattern matcher before creating a Data Router or static
5 * handler with `future.unstable_routePatternMatching` enabled. Import from
6 * `react-router/route-pattern` and call this once during application startup.
7 * Server and browser applications must each preload their own matcher.
8 *
9 * The matcher is statically imported by this module. Tree-shaking bundlers can
10 * remove it from applications that do not use this function. Initialization is
11 * synchronous, and repeated calls are safe.
12 *
13 * @public
14 * @category Data Routers
15 * @mode data
16 * @returns {void}
17 */
18declare function unstable_preloadRoutePattern(): void;
19//#endregion
20export { unstable_preloadRoutePattern };
\No newline at end of file