Just pushed my new Reloader package to Atmosphere. From the Readme:
More control over hot code push reloading for your production apps. Designed to replace mdg:reload-on-resume and provide a more production-ready approach.
After chatting with @loren and @martijnwalraven I think that this should cover most scenarios people will have, but let me know!
Please don’t deprecate mdg:reload-on-resume… finally have everything working rock-solid with Meteor 1.3 and hot code push. It works great on production – I’d highly recommend this simple core package.
I’m using it to only reload on a specific path as so…
import { Reload } from 'meteor/reload';
import { Tracker } from 'meteor/tracker';
import { FlowRouter } from 'meteor/kadira:flow-router';
import showLoadingThenReload from '../imports/show-loading-then-reload';
// Let's manually check for update when on home screen, and reload if there is one
Tracker.autorun(() => {
const current = FlowRouter.current();
const currentRouteName = current.route && current.route.name ? current.route.name : '';
FlowRouter.watchPathChange();
// We need this here because an update is available
// and we don't want to wait for resume to reload on these routes
if (Reload.isWaitingForResume() && currentRouteName === 'home') showLoadingThenReload();
});