|
resetCSSProperties(this.view.style); |
Looks like when a new CSS state is applied, all CSS properties are reset and then set back again. This causes all of their change handlers to execute twice (once for the reset, and once again for the value being applied), which can have further implications (mainly on performance, as it can lead to the inner implementation being rerendered) even if the value isn't actually being changed at all.
Reactions are currently unavailable
NativeScript/tns-core-modules/ui/styling/style-scope.ts
Line 100 in d482c53
Looks like when a new CSS state is applied, all CSS properties are reset and then set back again. This causes all of their change handlers to execute twice (once for the reset, and once again for the value being applied), which can have further implications (mainly on performance, as it can lead to the inner implementation being rerendered) even if the value isn't actually being changed at all.