We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e61217 commit 34ded10Copy full SHA for 34ded10
packages/core/src/render3/after_render/manager.ts
@@ -135,7 +135,7 @@ export class AfterRenderImpl {
135
136
protected maybeTrace<T>(fn: () => T, snapshot: TracingSnapshot | null): T {
137
// Only trace the execution if the snapshot is defined.
138
- return snapshot?.run(TracingAction.AFTER_NEXT_RENDER, fn) ?? fn();
+ return snapshot ? snapshot.run(TracingAction.AFTER_NEXT_RENDER, fn) : fn();
139
}
140
141
/** @nocollapse */
0 commit comments