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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user