refactor(ivy): move directives into separate array (#22918)
PR Close #22918
This commit is contained in:

committed by
Matias Niemelä

parent
34981063ec
commit
49396ca2ae
@ -25,8 +25,8 @@ export function pipe<T>(index: number, pipeDef: PipeDef<T>, firstInstance?: T):
|
||||
const tView = getTView();
|
||||
if (tView.firstTemplatePass) {
|
||||
tView.data[index] = pipeDef;
|
||||
if (pipeDef.onDestroy != null) {
|
||||
(tView.destroyHooks || (tView.destroyHooks = [])).push(index, pipeDef.onDestroy);
|
||||
if (pipeDef.onDestroy) {
|
||||
(tView.pipeDestroyHooks || (tView.pipeDestroyHooks = [])).push(index, pipeDef.onDestroy);
|
||||
}
|
||||
}
|
||||
const pipeInstance = pipeDef.pure && firstInstance ? firstInstance : pipeDef.n();
|
||||
|
Reference in New Issue
Block a user