Skip to content
Discussion options

You must be logged in to vote

Two things are happening here.

  1. Redirects don't pass the body to the target location.
  2. Loaders only handle GET requests and GET request don't have a body, a body is only available for an non GET request like POST/PUT/PATCH/DELETE

There're two way you could pass data from a redirect to another loader.

  1. Store them in a cookie/session and read from there in the loader you redirected to.
  2. Add them to the Location URL as search params and read in the loader from there.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by machour
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