ember.js
ember.js copied to clipboard
[bug] TypeWatcher invoking itself during onChange
When using ember inspector and loading data through api it can cause a tracking assertion for [] and also "Assertion Failed: Illegal set of identifier"
this happens when the type is first found and has new data. the type watcher will call onChange immediately, which calls this.wrapModelType then this.getRecords and then ember data does an internal sync again which causes this issue.
similar issue here: https://github.com/emberjs/data/issues/8006
also fixes https://github.com/emberjs/ember-inspector/issues/1875
@snewcomer or @wagenet? You were the last 2 editing this file. Any chance to have a look at this?
would also be nice to backport to older releases