#Replace state before redirect for multi-step form

1 messages · Page 1 of 1 (latest)

spring lark
#

Hi all! 👋🏽 I have a multi-step form where the first step e.g. /create creates the resource and the server action redirects the user to the second step to keep editing, e.g. /:id/edit/2

I would love if i were able to replace the state right before redirection, so let's say the creation succeeds in the Server Action then the history state is replaced to /:id/edit/1 and then the user is redirected (push state) to /:id/edit/2.

Can you think of a way to do this? Without moving all redirection logic to client, if possible.

strange emberBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)