Skip to content
Discussion options

You must be logged in to vote

The main issue here is that in projects.tsx, you commented out the default export (the UI component). When you make a full request (not via client link), Remix notices there is no default export and treats it as a resource route. Remix returns the raw response to the client for resource requests. If there's an error, it simply returns a status 500 Unexpected Server Error. Since resource routes are not intended to be part of the UI, they don't get wrapped in <ErrorBoundary>.

When you navigate via <Link>, Remix will make the client side fetch request and appends the _data=route_id search param. Remix then treats this as a data request and calls the loader. If there's an error, it will retur…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@kiliman
Comment options

@raulfdm
Comment options

@kiliman
Comment options

@ZeldOcarina
Comment options

Answer selected by ryanflorence
Comment options

You must be logged in to vote
1 reply
@ZeldOcarina
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants