I've got a form spread out over multiple pages (there are actions/fetches needed dynamically at each step) and I decided to store the state in the URL.
There's only 5 or 6 variables, so i'm storing them in hidden fields and passing them to the actions with the form, and pulling them from the request on the loaders. But this feels hacky, as I have to track them over 5 pages.
What's the best way to preserve it between transitions? I know I could store it in session storage, but I like how the url enables sharing. I also can't persist it to a DB until the final step submission