Skip to content
Source
Sign inSign up
TanStack/router

examples/react/navigation-blocking

lint
History
Contents of examples/react/navigation-blocking
NameLast commit messageLast commit date
..
.vscode (directory)
src (directory)
.gitignore
index.html
package.json
README.md
tsconfig.json
vite.config.js

README.md

TanStack Router - Navigation Blocking Example

An example demonstrating navigation blocking and confirmation.

Start a new project based on this example

To start a new project based on this example, run:

npx gitpick TanStack/router/tree/main/examples/react/navigation-blocking navigation-blocking

Getting Started

Install dependencies:

pnpm install

Start the development server:

pnpm dev

Build

Build for production:

pnpm build

About This Example

This example demonstrates:

  • Navigation blocking
  • Unsaved changes detection
  • Navigation confirmation dialogs
  • Form protection
  • User experience patterns