dimanche 6 novembre 2016

Ember view.renderer.willDestroyElement is not a function when transition to another route from component

In a component I setup a PIXI.js canvas element in didInsertElement. Later when I transition to another route Ember throws this error:

Uncaught TypeError: view.renderer.willDestroyElement is not a function(…)

The new route appears to have loaded as the model and setupController hooks get called and the url changes to the new route. But the previous component is still loaded and the new routes DOM elements are not. Also of note the willDestroyElement does not get called from the old component.

I'm using "ember-cli": "2.9.1",




Aucun commentaire:

Enregistrer un commentaire