Hacker News new | ask | show | jobs
by GranPC 1950 days ago
I'm actually having a similar issue with my web app currently and I'm not sure what the best way to solve it would be. I was thinking of setting a checkbox in an invisible form when the page loads initially, and force a real reload if the checkbox was previously set, but that seems like a terrible hack. Any ideas?
1 comments

We use this to force a refresh: https://stackoverflow.com/a/13123626/923847

Or you can use that event to fix what's wrong on the page without a refresh if possible (remove a modal, enable the button again etc)

Great! Looks like a proper way to do what I was trying to do. Thank you!

My web app is a game, so fixing everything without a refresh is unfortunately pointless for the most part, and forcing a refresh also ensures players are running the latest version if they've been away for a while.