We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a23850f commit 33b0d25Copy full SHA for 33b0d25
1 file changed
packages/core/src/render3/instructions/shared.ts
@@ -1955,11 +1955,11 @@ export function storePropertyBindingMetadata(
1955
1956
export function getOrCreateLViewCleanup(view: LView): any[] {
1957
// top level variables should not be exported for performance reasons (PERF_NOTES.md)
1958
- return view[CLEANUP] || (view[CLEANUP] = []);
+ return (view[CLEANUP] ??= []);
1959
}
1960
1961
export function getOrCreateTViewCleanup(tView: TView): any[] {
1962
- return tView.cleanup || (tView.cleanup = []);
+ return (tView.cleanup ??= []);
1963
1964
1965
/**
0 commit comments