Skip to content
public-library›Rules›TanStack Router›Set app-wide navigation behavior in router defaults

Set app-wide navigation behavior in router defaults

Configure behavior that should apply to every route in createRouter: preloading on intent, a default error component with retry, a default not-found component, and scroll restoration. Override it per route only where a route needs something different.

In the full rule