Hey Eric,

in this approach as soon as there is an error, you will always seen an error (even if future requests return 200). That’s because you never “reset” the history state for the particular url on 200 code responses, you just keep it to whatever it already was. The downside is that some 404 responses shouldn’t trigger a 404 page, but that’s solvable with some custom logic


Front-end ReactJS Developer — https://aggelos.dev

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store