Replies: 1 comment
-
Hm. So I've just gone back and re-read a handful of release notes, including the 1.8 release notes - and it appears that Remix framework 404 not found errors (i.e. router errors) will get thrown into a top-level CatchBoundary (like in root.tsx)- and so maybe a 'spat route' handler is not necessary? https://github.com/remix-run/remix/releases/tag/remix%401.8.0 Under "Making thrown Response objects less ambiguous"...
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
We're brand new to Remix. After having read quite a bit of the documentation, one of the 'speed bumps' we ran into was creating a custom 'catch all' 404 page. We then discovered the suggestions here at the end of the routing documentation - https://remix.run/docs/en/v1/guides/routing#splats - suggesting that a splat route be used to create a custom 404 page.
From this we believe that a splat route ensures that the loader and render of
root.tsx
will all occur as normal.Once we understood this - we came up with the following... in
$.tsx
Our question is does this look okay? (in our 'real'
$.tsx
page we style the 404 page).If generally speaking this is correct, we'd be glad to submit a pull request with updated docs and an example at the end of the 'Routing' documentation.
Thanks for the cool framework and Happy New Year!
Beta Was this translation helpful? Give feedback.
All reactions