router-core/navigation

Implement type-safe TanStack Router navigation with Link, useNavigate, and Navigate.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/abereghici/skills --skill router-core-navigation-abereghici
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: router-core/navigation
Source: https://github.com/abereghici/skills/tree/main/skills/tanstack-router/navigation
Command: npx skills add https://github.com/abereghici/skills --skill router-core-navigation-abereghici

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Building large React apps with TanStack Router can lead to repetitive, error-prone navigation code. This skill provides a cohesive, type-safe navigation layer that standardizes Link, useNavigate, and Navigate usage while exposing advanced features like relative navigation, preloading, and scroll restoration.

Core Features & Use Cases

  • Type-safe Link and navigation components (Link, useNavigate, Navigate) with support for from, to, and params
  • Preloading strategies (intent, viewport, render) and navigation blockers for improved UX
  • Utilities such as linkOptions, createLink, and MatchRoute to enable scalable navigation patterns across large apps
  • Relative navigation using from, and active state handling for dynamic UI cues
  • Scroll restoration and per-route navigation controls to preserve UX during route changes

Quick Start

Install the TanStack Router navigation capabilities and begin wiring typed routes with Link components, passing params with the $param syntax and a params object.

Frequently Asked Questions about router-core/navigation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement type-safe navigation in React with TanStack Router?

Implement type-safe React navigation using TanStack Router by standardizing Link, useNavigate, and Navigate components with from, to, and params properties. This approach prevents routing errors by validating relative and absolute paths during development.

What is the best way to pass dynamic route params in TanStack Router?

Pass dynamic route params in TanStack Router using the $param syntax alongside a params object within typed Link components. This method ensures parameters are strictly typed and matched to their respective routes.

How do I configure route preloading strategies in TanStack Router?

Configure route preloading strategies in TanStack Router using intent, viewport, and render options. These strategies prefetch route data to improve user experience by reducing load times during active navigation.

Does TanStack Router support scroll restoration during client-side navigation?

TanStack Router supports scroll restoration and per-route navigation controls to preserve user experience during route changes. It maintains scroll positions automatically when navigating between relative and absolute paths.

Can I block navigation attempts in a React app using TanStack Router?

You can block navigation attempts in React using TanStack Router's built-in navigation blockers. This feature prevents users from accidentally leaving routes with unsaved changes or incomplete form submissions.

How do I handle active state styling for dynamic links in TanStack Router?

Handle active state styling for dynamic links in TanStack Router using its built-in active state handling properties. This provides dynamic UI cues by automatically tracking relative navigation paths and matching current route contexts.