Skip to content

Commit

Permalink
fix(Subscription): null _parentage on unsubscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed May 4, 2021
1 parent ced5ab0 commit 7a5a0bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/internal/Subscription.ts
Expand Up @@ -56,6 +56,7 @@ export class Subscription implements SubscriptionLike {

// Remove this from it's parents.
const { _parentage } = this;
this._parentage = null;
if (Array.isArray(_parentage)) {
for (const parent of _parentage) {
parent.remove(this);
Expand Down

0 comments on commit 7a5a0bd

Please sign in to comment.