C
C#17mo ago
linqisnice

❔ Need some help/advicce on how to construct a multistep registration form (web api + react)

Not user registration, listing registration So, when you register a listing on booking.com, they have a multistep registration form. First you fill in basic information like listing title etc... then you click next, and you get to step two where you can upload photos etc. But it is all persisted and you can bookmark each step. Im not sure how to approach this. Should I persist the form on the frontend or the server side? Should I partially update a listing or create some form entity to track the state of the form? Should each step be its own endpoint or can i just put it all in one endpoint and track the state of the form from there?
2 Replies
Axiss
Axiss17mo ago
For the persistence question, the easy way to answer that is "Should I be able to stop working on a listing on one computer and resume on another?". If the answer is yes then you need to persist it server-side.
Accord
Accord17mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.