mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
perf(change detection): Assign this.locals in change detector ctor
Set `this.locals = null;` in the ctor of generated change detector classes to prevent the class "shape" from changing on `hydrate`.
This commit is contained in:
parent
894a0f0ee5
commit
a6736ff9f2
1 changed files with 1 additions and 0 deletions
|
|
@ -64,6 +64,7 @@ ${DISPATCHER_ACCESSOR} = dispatcher;
|
|||
${PIPE_REGISTRY_ACCESSOR} = pipeRegistry;
|
||||
${PROTOS_ACCESSOR} = protos;
|
||||
${MEMENTOS_ACCESSOR} = directiveMementos;
|
||||
${LOCALS_ACCESSOR} = null;
|
||||
${fieldsDefinitions}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue