Returns the full route tree of your app as a structured object. Useful for debug screens, route picker UIs, and generating link previews.
useSitemap() returns a recursive SitemapType rooted at the top-level layout, or null if the route tree hasn’t been initialized yet (briefly, on first render).
href is the route pattern with dynamic segments left as [id] / [...slug], not a concrete URL. Fill in your own params if you want clickable links:
User-defined routes have isInternal === false and isGenerated === false. Skip the rest in your UI to avoid showing One’s internals:
Edit this page on GitHub.