by orphea · 2y ago · 0 comments
I’ll explore making the changes shareable without appending the state to the URL in that way.
At least it’s that way for me in Chrome.
Initially this was a design decision to make it easy to share the URL of the Mock API you built with other developers. However, I can see this is breaking user expectations - I’ll work on getting that changed so it’s more in line with what users expect.
I appreciate the feedback because initially that felt “natural” to me but I can see how it might not be intuitive to others.
Do not use history.pushState to update the URL if whatever is happening on the page doesn't count as navigation. Try to look into history.replaceState and see if it helps.