Skip to content

Commit fa4a3aa

Browse files
committed
perf(combo): avoid triggering pipeline for state updates setting same data
1 parent c3e6023 commit fa4a3aa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/combo/combo.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ export default class IgcComboComponent<
181181
/* treatAsRef */
182182
@property({ attribute: false })
183183
public set data(value: T[]) {
184+
if (this._data === value) {
185+
return;
186+
}
184187
this._data = asArray(value);
185188
const pristine = this._pristine;
186189
this.value = asArray(this.value);

0 commit comments

Comments
 (0)