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.tsxMelvin 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-goldOP•15mo 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•15mo ago
can you please post bugs as github issues?
stormy-goldOP•15mo ago
Github issue: https://github.com/TanStack/router/issues/1796
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...