Skip to content
Source
Sign inSign up
TanStack/router

e2e/react-router/scroll-restoration-sandbox-vite

README.md

Scroll Restoration Testing Sandbox with Vite

To run this example:

  • npm install
  • npm start

This sandbox is for testing the scroll restoration behavior.

Setup

  • Create your files in src/routes directory.
  • Make sure you update the arrays in the following files with the expected routes
    • tests/app.spec.ts > routes array
    • src/routes/__root.tsx > Nav component, routes array
    • src/routes/index.tsx > Navigation test suite, routes array