Files
SnowLuma/.pnpm-store/v11/files/84/b112cd1ed855a749902cc6c7fd35af6360b5f2a4260d3b52b8d3f62d714401935b0f5ac1d37bfcfc7e60df9a171133712b0ed09ae50c40420c58cb6d5b4fa5
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

26 lines
872 B
Plaintext

import { getStoreFactory } from "./routerStores.js";
import { RouterCore } from "@tanstack/router-core";
//#region src/router.ts
/**
* Creates a new Router instance for React.
*
* Pass the returned router to `RouterProvider` to enable routing.
* Notable options: `routeTree` (your route definitions) and `context`
* (required if the root route was created with `createRootRouteWithContext`).
*
* @param options Router options used to configure the router.
* @returns A Router instance to be provided to `RouterProvider`.
* @link https://tanstack.com/router/latest/docs/framework/react/api/router/createRouterFunction
*/
var createRouter = (options) => {
return new Router(options);
};
var Router = class extends RouterCore {
constructor(options) {
super(options, getStoreFactory);
}
};
//#endregion
export { Router, createRouter };
//# sourceMappingURL=router.js.map