mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-04 21:06:45 +08:00
revert: perf(core): no need for batchUpdated if no selector (#9121)
This commit is contained in:
@ -473,7 +473,10 @@ export class CssState {
|
|||||||
|
|
||||||
const matchingSelectors = this._match.selectors.filter((sel) => (sel.dynamic ? sel.match(view) : true));
|
const matchingSelectors = this._match.selectors.filter((sel) => (sel.dynamic ? sel.match(view) : true));
|
||||||
if (!matchingSelectors || matchingSelectors.length === 0) {
|
if (!matchingSelectors || matchingSelectors.length === 0) {
|
||||||
return;
|
// Ideally we should return here if there are no matching selectors, however
|
||||||
|
// if there are property removals, returning here would not remove them
|
||||||
|
// this is seen in STYLE test in automated.
|
||||||
|
// return;
|
||||||
}
|
}
|
||||||
view._batchUpdate(() => {
|
view._batchUpdate(() => {
|
||||||
this.stopKeyframeAnimations();
|
this.stopKeyframeAnimations();
|
||||||
|
|||||||
Reference in New Issue
Block a user