mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
80dbd74ae8
Wrap operationsCounter method calls (recordCreate, recordDestroy, reset) with ngDevMode guards to ensure they are tree-shaken in production builds. This aligns with the existing pattern where operationsCounter is only initialized in development mode, and eliminates unnecessary method call overhead in production. The optional chaining (?.) is retained as TypeScript doesn't narrow types based on ngDevMode checks, but the entire expression will be removed during production builds.
Angular
The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.
Usage information and reference details can be found in Angular documentation.
License: MIT