Skip to content

Commit 19c4444

Browse files
Fix condition to check for destroyed state
1 parent 6c94b56 commit 19c4444

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@ember/-internals/glimmer/lib/renderer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class ComponentRootState {
160160
associateDestroyableChild(this, this.#result);
161161

162162
this.#render = errorLoopTransaction(() => {
163-
if (isDestroying(result) || isDestroying(result)) return;
163+
if (isDestroying(result) || isDestroyed(result)) return;
164164

165165
return result.rerender({
166166
alwaysRevalidate: false,
@@ -235,7 +235,7 @@ class ClassicRootState {
235235
associateDestroyableChild(owner, result);
236236

237237
this.render = errorLoopTransaction(() => {
238-
if (isDestroying(result) || isDestroying(result)) return;
238+
if (isDestroying(result) || isDestroyed(result)) return;
239239

240240
return result.rerender({
241241
alwaysRevalidate: false,

0 commit comments

Comments
 (0)