File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
libs/core/src/lib/directives Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,10 @@ export abstract class NgtCommonDirective<TValue> {
31
31
32
32
constructor ( ) {
33
33
effect ( ( ) => {
34
- const value = this . linkedValue ( ) ;
35
34
if ( this . shouldSkipRender ( ) ) return ;
36
35
36
+ const value = this . linkedValue ( ) ;
37
+
37
38
if ( is . equ ( value , this . injectedValue ) ) {
38
39
// we have the same value as before, no need to update
39
40
return ;
Original file line number Diff line number Diff line change 7
7
} from '../renderer/constants' ;
8
8
import { injectStore } from '../store' ;
9
9
import { NgtNullish } from '../types' ;
10
+ import { resolveRef } from '../utils/resolve-ref' ;
10
11
import { NgtCommonDirective } from './common' ;
11
12
12
13
@Directive ( { selector : 'ng-template[parent]' } )
@@ -30,11 +31,7 @@ export class NgtParent extends NgtCommonDirective<THREE.Object3D | null | undefi
30
31
return scene . getObjectByName ( rawParent ) ;
31
32
}
32
33
33
- if ( 'nativeElement' in rawParent ) {
34
- return rawParent . nativeElement ;
35
- }
36
-
37
- return rawParent ;
34
+ return resolveRef ( rawParent ) ;
38
35
} ) ;
39
36
40
37
protected linkedValue = linkedSignal ( this . _parent ) ;
You can’t perform that action at this time.
0 commit comments