perf(ivy): attempt rendering initial styling only if present (#32979)
PR Close #32979
This commit is contained in:

committed by
Alex Rickabaugh

parent
e6881b5b42
commit
60047037a3
@ -8,7 +8,7 @@
|
||||
import {SafeValue} from '../../sanitization/bypass';
|
||||
import {StyleSanitizeFn} from '../../sanitization/style_sanitizer';
|
||||
import {setInputsForProperty} from '../instructions/shared';
|
||||
import {AttributeMarker, TAttributes, TNode, TNodeType} from '../interfaces/node';
|
||||
import {AttributeMarker, TAttributes, TNode, TNodeFlags, TNodeType} from '../interfaces/node';
|
||||
import {RElement} from '../interfaces/renderer';
|
||||
import {StylingMapArray, StylingMapArrayIndex, TStylingContext} from '../interfaces/styling';
|
||||
import {BINDING_INDEX, LView, RENDERER} from '../interfaces/view';
|
||||
@ -474,6 +474,10 @@ export function registerInitialStylingOnTNode(
|
||||
updateRawValueOnContext(tNode.styles, stylingMapToString(styles, false));
|
||||
}
|
||||
|
||||
if (hasAdditionalInitialStyling) {
|
||||
tNode.flags |= TNodeFlags.hasInitialStyling;
|
||||
}
|
||||
|
||||
return hasAdditionalInitialStyling;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user