Skip to content

Commit

Permalink
fix issue with ember tracking reentry assert (emberjs#1094)
Browse files Browse the repository at this point in the history
* fix issue with ember tracking reentry assert

this causes:
Assertion Failed: You attempted to update `[]` on `[object Object]`, but it had already been used previously in the same computation

* use suggestion

Co-Authored-By: Chris Garrett <[email protected]>
  • Loading branch information
2 people authored and nummi committed Apr 1, 2020
1 parent 86f2f68 commit baeb55f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ember_debug/deprecation-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export default EmberObject.extend(PortMixin, {
// For ember-debug testing we usually don't want
// to catch deprecations
if (!this.get('namespace').IGNORE_DEPRECATIONS) {
this.get('deprecationsToSend').pushObject(deprecation);
this.deprecationsToSend.pushObject(deprecation);
run.cancel(this.debounce);
if (this._watching) {
this.debounce = run.debounce(this, 'sendPending', 100);
Expand Down

0 comments on commit baeb55f

Please sign in to comment.