T
TanStack4y ago
wee-brown

How to define a 404 or not found page?

I've searched the docs, but since they are still a work in progress, I didn't find anything yet.
2 Replies
wee-brown
wee-brownOP4y ago
for now I am doing
createRoute({
path: "*any",
component: NotFound,
}),
createRoute({
path: "*any",
component: NotFound,
}),
at the end of my router, but is there a more official way? actually this is bad, since i'd have to write the fallback for every router
rival-black
rival-black4y ago
You can do * for catch all. But agreed there should be a top-down bulk catch all api

Did you find this page helpful?