Is it expected that you can’t call this.render inside beforeModel? I get
Error while processing route: checkout.people-search Cannot read property 'push' of undefined TypeError: Cannot read property 'push' of undefined
at Class.render (http://localhost:4200/assets/vendor.js:47429:24)
at Class.beforeModel (http://localhost:4200/engines-dist/checkout/assets/engine.js:1790:14)
this.connections is undefined, and isn’t initialized until the activate hook.
My use case is showing a loading template right before redirecting to an external site. I don’t want a history entry or the URL to change so the back button skips the loading template.
It’s cleat what it does, but just curious: it can’t cancel all current XHR requests. If it brakes the cycle, what will happen to your previous XHR requests that should return same models (and they probably has to be unloaded first)?