fix(animations): properly cache renderer and namespace triggers (#14703)
- Don’t use the animation renderer if a component used style encapsulation but no animations. - The `AnimationRenderer` should be cached in the same lifecycle as its delegate. - Trigger names need to be namespaced per component type.
This commit is contained in:
@ -834,7 +834,7 @@ export declare abstract class RendererFactoryV2 {
|
||||
/** @experimental */
|
||||
export interface RendererTypeV2 {
|
||||
data: {
|
||||
[kind: string]: any[];
|
||||
[kind: string]: any;
|
||||
};
|
||||
encapsulation: ViewEncapsulation;
|
||||
id: string;
|
||||
@ -843,6 +843,9 @@ export interface RendererTypeV2 {
|
||||
|
||||
/** @experimental */
|
||||
export declare abstract class RendererV2 {
|
||||
readonly abstract data: {
|
||||
[key: string]: any;
|
||||
};
|
||||
destroyNode: (node: any) => void | null;
|
||||
abstract addClass(el: any, name: string): void;
|
||||
abstract appendChild(parent: any, newChild: any): void;
|
||||
|
Reference in New Issue
Block a user