Backstage
    Preparing search index...
    • Creates a page-router component backed by a plugin-owned TanStack route tree. Render the result inside the lazily loaded page or sub-page component that should get the context, the same way TanStackPageRouter is used.

      Call this once, at module scope. Each call returns a new component type. A call inside a render body therefore hands React a different type on every render. That unmounts and remounts the whole page subtree, and throws away page state, scroll position and in-flight requests.

      The component passes its children through untouched wherever there is nothing to scope to, and createRouter is not called there — see TanStackPageRouter for what that means and why.

      Parameters

      Returns ComponentType<{ children?: ReactNode }>