Re:Show HN: TheKnob – sound volume control knob made of conc...
by jbverschoor on Sunday June 07, 2020 @06:22PM
(#23451462)
Or breaking the back button
[ Parent
| on HN ]
Re:Show HN: TheKnob – sound volume control knob made of conc...
by pedroma on Sunday June 07, 2020 @07:27PM
(#23452000)
People just need to know when to use replaceState instead of pushState.
https://developer.mozilla.org/en-US/docs/Web/API/History/rep...
Re:Show HN: TheKnob – sound volume control knob made of conc...
by splintercell on Monday June 08, 2020 @12:07AM
(#23453471)
pushState maybe sometimes used but replaceState should never be used.
Seriously, many times I was on a website where scrawling introduce you to new article but it also replace the URL oh, now I wanted to go back to the original article because I wanted to share with you but I couldn't. at least with a push State I could retrace my steps and not rely on the developer guessing where I might have been going.
Re:Show HN: TheKnob – sound volume control knob made of conc...
by Gibbon1 on Sunday June 07, 2020 @06:26PM
(#23451491)
Be nice if there was a DNS that blackholes websites that break the back button.
Re:Show HN: TheKnob – sound volume control knob made of conc...
by jbverschoor on Monday June 08, 2020 @03:52PM
(#23460076)
OH yeah! A DNS that would crawl the website, launch a VM with a couple browsers to see if the backbutton is broken.