T
TanStack15mo ago
stormy-gold

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
Melvin Valster
StackBlitz
404 Throws already on Preload - StackBlitz
Run official live example code for Router Basic File Based, created by Tanstack on StackBlitz
3 Replies
stormy-gold
stormy-goldOP15mo ago
It does not seem to happen if you define a defaultNotFoundComponent on the router, if that's of any help chasing the bug down.
wise-white
wise-white15mo ago
can you please post bugs as github issues?
stormy-gold
stormy-goldOP15mo ago
GitHub
throw notFound() in beforeLoad() when preloading instantly show...
Describe the bug I don't even need to click the link, as soon as I hover over it, I get the "Not found" error message? Your Example Website or App https://stackblitz.com/edit/tanstack...

Did you find this page helpful?