TanStackT
TanStack2y ago
3 replies
progressive-amaranth

Bug: `throw notFound()` in `beforeLoad()` when preloading instantly shows the error

I don't even need to click the link, as soon as I hover over it, I get the "Not found" error message?

Repro steps:
1. Go to /browse
2. Hover over "Browse 404"

Expected:
Nothing happens

Actual:
Throws a 404 on the app root level

https://stackblitz.com/edit/tanstack-router-xxntjv?file=src%2Froutes%2Fbrowse.%24.tsx
StackBlitzMelvin Valster
Run official live example code for Router Basic File Based, created by Tanstack on StackBlitz
404 Throws already on Preload - StackBlitz
Was this page helpful?