We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5efc4e commit a9214c5Copy full SHA for a9214c5
libs/angular-three/src/lib/utils/safe-detect-changes.ts
@@ -4,9 +4,7 @@ import type { NgtAnyRecord } from '../types';
4
export function safeDetectChanges(cdr: ChangeDetectorRef | undefined | null) {
5
if (!cdr) return;
6
try {
7
- // dynamic created component with ViewContainerRef#createComponent does not have Context
8
- // but it has _attachedToViewContainer
9
- if ((cdr as NgtAnyRecord)['context'] || (cdr as NgtAnyRecord)['_attachedToViewContainer']) {
+ if ((cdr as NgtAnyRecord)['_attachedToViewContainer']) {
10
cdr.detectChanges();
11
}
12
} catch (e) {
0 commit comments