Skip to content
Discussion options

You must be logged in to vote

So the fetch is from your loader? Are you trying to call an endpoint in the current app?

You should always use an absolute URL in fetch for external server-side fetches.

However, if you're calling an existing loader in your own app, extracting that to a shared function you call would be better. In other words, don't make a network request to an internal route.

Replies: 1 comment 2 replies

Comment options

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

Answer selected by justin-hackin
@justin-hackin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants