Skip to content

SSR instead of redirect when submitting server action with JS/WASM disabled? #1544

Answered by gbj
sbking asked this question in Q&A
Discussion options

You must be logged in to vote

Sure, something like this is possible with Leptos. Remix's option also works, but limits you to only one action/server function per route.

There's not a built-in way to do what you're asking at the moment, but the options are either

  1. return errors in the query string of the redirect, as you describe above, or
  2. post to the route and handle errors there (see link)

There is not a progressively-enhanced version of 2. PRs or discussion in the linked issue welcome.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sbking
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