MCPcopy Index your code
hub / github.com/angular/angular / incrementInitPhaseFlags

Function incrementInitPhaseFlags

packages/core/src/render3/hooks.ts:209–222  ·  view source on GitHub ↗
(lView: LView, initPhase: InitPhaseState)

Source from the content-addressed store, hash-verified

207}
208
209export function incrementInitPhaseFlags(lView: LView, initPhase: InitPhaseState): void {
210 ngDevMode &&
211 assertNotEqual(
212 initPhase,
213 InitPhaseState.InitPhaseCompleted,
214 'Init hooks phase should not be incremented after all init hooks have been run.',
215 );
216 let flags = lView[FLAGS];
217 if ((flags & LViewFlags.InitPhaseStateMask) === initPhase) {
218 flags &= LViewFlags.IndexWithinInitPhaseReset;
219 flags += LViewFlags.InitPhaseStateIncrementer;
220 lView[FLAGS] = flags;
221 }
222}
223
224/**
225 * Calls lifecycle hooks with their contexts, skipping init hooks if it's not

Callers 1

refreshViewFunction · 0.90

Calls 1

assertNotEqualFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…