ember.js icon indicating copy to clipboard operation
ember.js copied to clipboard

[bug] TypeWatcher invoking itself during onChange

Open patricklx opened this issue 3 years ago • 2 comments

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

patricklx avatar Jun 20 '22 11:06 patricklx

@snewcomer or @wagenet? You were the last 2 editing this file. Any chance to have a look at this?

patricklx avatar Aug 20 '22 14:08 patricklx

would also be nice to backport to older releases

patricklx avatar Sep 22 '22 09:09 patricklx