Skip to content
Discussion options

You must be logged in to vote

Like @sergiodxa said, you need to

  • move the action code to the route (this is what I would do, since you want the data there, move the action there)
  • redirect back to the page with the form and store state in a cookie, read it in the loader (pain in the neck but works with SSR, no JS, etc.)
  • useFetcher - doesn't cause navigation, doesn't server render, doesn't work without JS but probably matches your current mental model for this feature

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
4 participants