Chrome's address bar can load a page and run its JavaScript before you press Enter. Here's how that broke our onboarding flow, and why it was so hard to catch.
It’s a little hard to tell what they are trying to achieve tbh, but generally GET requests should not change any state. Avoiding stuff like this is one of the big reasons why!
If they’re trying to track some value through a sign-up process generally the solution is with a query parameter. E.g. that’s how log-in flows return you to the page you were trying to access - they have a next parameter.
Yeah, I agree that their solution is a bit wack. I still don’t get what they are trying to achieve by storing the query param inside localStorage first instead of just POST-ing it as needed when sign up.
It’s a little hard to tell what they are trying to achieve tbh, but generally GET requests should not change any state. Avoiding stuff like this is one of the big reasons why!
If they’re trying to track some value through a sign-up process generally the solution is with a query parameter. E.g. that’s how log-in flows return you to the page you were trying to access - they have a
nextparameter.Yeah, I agree that their solution is a bit wack. I still don’t get what they are trying to achieve by storing the query param inside localStorage first instead of just POST-ing it as needed when sign up.