Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Thanks! I couldn't see it on Chrome due to React Devtools interference.

Turns out the page was ending up in bfcache (https://web.dev/articles/bfcache), which in turn led to the button's loading state being preserved when clicking back. Listening to the `pageshow` event enables one to handle that somewhat gracefully.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: