[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/core/assertNotInReactiveContext [Back]  [Original]

assertNotInReactiveContext Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/core

assertNotInReactiveContext

function
stable

Asserts that the current stack frame is not within a reactive context. Useful to disallow certain code from running inside a reactive context (see toSignal)

Asserts the reactive context

On this page

    arrow_upward_alt Back to the top

    API

    function assertNotInReactiveContext(
      debugFn: Function,
      extraContext?: string | undefined,
    ): void;
    @paramdebugFnFunction

    a reference to the function making the assertion (used for the error message).

    @paramextraContextstring | undefined
    @returnsvoid
    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page