refactor(core): profiler takes null as a default instance (#59233)

Several profiler calls don't have any meaningful instance when
producing a profiling event. This commit changes the default
instance value to null to sreamline profiler invocations.

PR Close #59233
This commit is contained in:
Pawel Kozlowski
2024-12-20 17:21:27 +01:00
committed by kirjs
parent 790221b1d2
commit c4ad8fb2e7
3 changed files with 3 additions and 3 deletions
@@ -43,7 +43,7 @@ export class NgProfiler extends Profiler {
private _initialize(): void {
ngDebugClient().ɵsetProfiler(
(event: ɵProfilerEvent, instanceOrLView: {} | null, hookOrListener: any) =>
(event: ɵProfilerEvent, instanceOrLView: {} | null = null, hookOrListener: any) =>
this._callbacks.forEach((cb) => cb(event, instanceOrLView, hookOrListener)),
);
}