router.tsx — ui Source File
Architecture documentation for router.tsx, a tsx file in the ui codebase. 2 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR c569a8e6_bae6_cfc2_0233_a25add6c52f2["router.tsx"] b3267395_0892_c6e6_e5eb_e3e8bd966c15["routeTree.gen.ts"] c569a8e6_bae6_cfc2_0233_a25add6c52f2 --> b3267395_0892_c6e6_e5eb_e3e8bd966c15 e5d49ad6_fd9e_ad2d_330d_6dcc2f90769d["react-router"] c569a8e6_bae6_cfc2_0233_a25add6c52f2 --> e5d49ad6_fd9e_ad2d_330d_6dcc2f90769d b3267395_0892_c6e6_e5eb_e3e8bd966c15["routeTree.gen.ts"] b3267395_0892_c6e6_e5eb_e3e8bd966c15 --> c569a8e6_bae6_cfc2_0233_a25add6c52f2 style c569a8e6_bae6_cfc2_0233_a25add6c52f2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { createRouter } from '@tanstack/react-router'
// Import the generated route tree
import { routeTree } from './routeTree.gen'
// Create a new router instance
export const getRouter = () => {
const router = createRouter({
routeTree,
scrollRestoration: true,
defaultPreloadStaleTime: 0,
})
return router
}
Domain
Subdomains
Functions
Dependencies
- react-router
- routeTree.gen.ts
Imported By
Source
Frequently Asked Questions
What does router.tsx do?
router.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, Styles subdomain.
What functions are defined in router.tsx?
router.tsx defines 1 function(s): getRouter.
What does router.tsx depend on?
router.tsx imports 2 module(s): react-router, routeTree.gen.ts.
What files import router.tsx?
router.tsx is imported by 1 file(s): routeTree.gen.ts.
Where is router.tsx in the architecture?
router.tsx is located at templates/start-app/src/router.tsx (domain: ComponentRegistry, subdomain: Styles, directory: templates/start-app/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free