• 개요
@angular/core

provideStabilityDebugging

함수
안정화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.

API

설명

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.

사용 시 참고사항

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.

상세 내용으로 이동