Skip to content

Commit

Permalink
Merge pull request #81 from hoxyq/patch-1
Browse files Browse the repository at this point in the history
chore: remove redundant observe call on unmount
  • Loading branch information
bvaughn authored Feb 19, 2024
2 parents c65defe + df589bd commit 2fd2329
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/AutoSizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ export class AutoSizer extends Component<Props, State> {
}

if (this._resizeObserver) {
this._resizeObserver.observe(this._parentNode);
this._resizeObserver.disconnect();
}
}
Expand Down

0 comments on commit 2fd2329

Please sign in to comment.