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

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

provideStabilityDebugging

function
stablesince v21.1

Provides an application initializer that will log information about what tasks are keeping the application from stabilizing if the application does not stabilize within 9 seconds.

On this page

    arrow_upward_alt Back to the top

    API

    Description

    Provides an application initializer that will log information about what tasks are keeping the application from stabilizing if the application does not stabilize within 9 seconds.

    The logged information includes the stack of the tasks preventing stability. This stack can be traced back to the source in the application code.

    If you are using Zone.js, it is recommended that you also temporarily import "zone.js/plugins/task-tracking". This Zone.js plugin provides additional information about which macrotasks are scheduled in the Angular Zone and keeping the Zone from stabilizing.

    Usage Notes

    import 'zone.js/plugins/task-tracking';
    
    bootstrapApplication(AppComponent, {providers: [provideStabilityDebugging()]});

    IMPORTANT: Neither the zone.js task tracking plugin nor this utility are removed from production bundles. They are intended for temporary use while debugging stability issues during development, including for optimized production builds.

    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page