Skip to content

Commit

Permalink
do not emit if unchanged
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchia authored and martinRenou committed May 31, 2024
1 parent ea2b559 commit 5f893b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/unfold.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,10 @@ export class FilterFileTreeBrowserModel extends FilterFileBrowserModel {
}

set path(value: string) {
if (this._path === value) {
return;
}

const pathChanged = this.pathChanged as Signal<this, IChangedArgs<string>>;
const oldValue = this._path;

Expand Down

0 comments on commit 5f893b2

Please sign in to comment.