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

Function executeInitAndCheckHooks

packages/core/src/render3/hooks.ts:192–207  ·  view source on GitHub ↗
(
  lView: LView,
  hooks: HookData,
  initPhase: InitPhaseState,
  nodeIndex?: number | null,
)

Source from the content-addressed store, hash-verified

190 * case, when executing select(number))
191 */
192export function executeInitAndCheckHooks(
193 lView: LView,
194 hooks: HookData,
195 initPhase: InitPhaseState,
196 nodeIndex?: number | null,
197) {
198 ngDevMode &&
199 assertNotEqual(
200 initPhase,
201 InitPhaseState.InitPhaseCompleted,
202 'Init pre-order hooks should not be called more than once',
203 );
204 if ((lView[FLAGS] & LViewFlags.InitPhaseStateMask) === initPhase) {
205 callHooks(lView, hooks, initPhase, nodeIndex);
206 }
207}
208
209export function incrementInitPhaseFlags(lView: LView, initPhase: InitPhaseState): void {
210 ngDevMode &&

Callers 2

selectIndexInternalFunction · 0.90
refreshViewFunction · 0.90

Calls 2

assertNotEqualFunction · 0.90
callHooksFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…