Skip to content

Commit d4b1bb8

Browse files
NullVoxPopulikategengler
authored andcommitted
Fix condition to check for destroyed state
(cherry picked from commit 19c4444)
1 parent b07815d commit d4b1bb8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)