MCPcopy
hub / github.com/angular/angular / assertNotReactive

Function assertNotReactive

packages/core/src/util/assert.ts:145–149  ·  view source on GitHub ↗
(fn: string)

Source from the content-addressed store, hash-verified

143}
144
145export function assertNotReactive(fn: string): void {
146 if (getActiveConsumer() !== null) {
147 throwError(`${fn}() should never be called in a reactive context.`);
148 }
149}

Callers 3

processCleanupsFunction · 0.90
executeOnDestroysFunction · 0.90
renderViewFunction · 0.90

Calls 2

getActiveConsumerFunction · 0.90
throwErrorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…