Skip to content

Commit 70aa435

Browse files
committed
fix(foxy-nucleon): make sure unused Rumour instances are always destroyed before a new one is created
1 parent c23c7b4 commit 70aa435

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/elements/public/NucleonElement/NucleonElement.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ export class NucleonElement<TData extends HALJSONResource> extends InferrableMix
477477
}
478478

479479
private __createRumour() {
480+
this.__destroyRumour();
480481
const rumour = NucleonElement.Rumour(this.group);
481482
this.__unsubscribeFromRumour = rumour.track(update => this.__handleRumourUpdate(update));
482483
}

0 commit comments

Comments
 (0)