refactor(ivy): introduce a firstUpdatePass flag for TView instances (#31270)

This patch introduces a `firstUpdatePass` flag which can be used inside
of instruction code to determine if this is the first time each
instruction is running inside of the update block of a template or
a hostBindings function.

PR Close #31270
This commit is contained in:
Matias Niemelä
2019-10-29 15:15:09 -07:00
committed by atscott
parent e3189f97ff
commit 91147ade2e
5 changed files with 106 additions and 1 deletions

View File

@ -363,6 +363,9 @@ export interface TView {
/** Whether or not this template has been processed. */
firstTemplatePass: boolean;
/** Whether or not the first update for this element has been processed. */
firstUpdatePass: boolean;
/** Static data equivalent of LView.data[]. Contains TNodes, PipeDefInternal or TI18n. */
data: TData;