Comment by jnnnthnn
1 year ago
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.
No comments yet
Contribute on Hacker News ↗