Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
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
145
export
function
assertNotReactive(fn: string): void {
146
if
(getActiveConsumer() !== null) {
147
throwError(`${fn}() should never be called in a reactive context.`);
148
}
149
}
Callers
3
processCleanups
Function · 0.90
executeOnDestroys
Function · 0.90
renderView
Function · 0.90
Calls
2
getActiveConsumer
Function · 0.90
throwError
Function · 0.70
Tested by
no test coverage detected