Currently, whenever I deploy, the app automatically reloads which isn’t very user friendly, especially if the user is in the middle of adding some content when the refresh occurs.
Ideally, I’d like to display a “New Version - click here to refresh” message like some other popular web-apps do, but failing that, disabling auto-refresh would suffice. I’ve seen a few snippets on here in the past showing how to disable auto-refresh, but they sounded like workarounds rather than proper solutions - please correct me if I’m wrong.
There are a few atmosphere packages for this functionality. This is a search for ‘reload’, so there’s some “noise”:
https://atmospherejs.com/?q=reload
This may be worth looking at - it’s recent and well documented (I haven’t tried it): https://atmospherejs.com/jamielob/reloader
Thanks for the links.
Unfortunately, I couldn’t get jamielob:reloader to work. I have settled for disabling client-side hot refreshes for now using the following client-side code:
Meteor.startup(() => {
Meteor._reload.onMigrate(() => [false]);
});
Not ideal, but it works and is good enough for now.