Skip to content

Commit 3f5cbaf

Browse files
authored
Merge branch 'main' into fix/color-parsing
2 parents 45e5e0d + e94320d commit 3f5cbaf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

package/src/values/web/RNSkReadonlyValue.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ export class RNSkReadonlyValue<T> implements SkiaValue<T> {
1313
}
1414

1515
protected update(nextValue: T): void {
16-
this._current = nextValue;
17-
this.notifyListeners();
16+
if (this._current !== nextValue) {
17+
this._current = nextValue;
18+
this.notifyListeners();
19+
}
1820
}
1921

2022
public readonly __typename__ = "RNSkValue";

0 commit comments

Comments
 (0)