Skip to content

Commit 59db3ae

Browse files
committed
fix(core): warn about 'routed' scenegraph
1 parent 3562d71 commit 59db3ae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: libs/core/src/lib/canvas.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ export class NgtCanvas {
6666

6767
sceneGraph = input.required<Type<any>, Type<any> | 'routed'>({
6868
transform: (value) => {
69-
if (value === 'routed') return NgtRoutedScene;
69+
if (value === 'routed') {
70+
console.warn(`[NGT] 'routed' sceneGraph is not working properly.`);
71+
return NgtRoutedScene;
72+
}
7073
return value;
7174
},
7275
});

0 commit comments

Comments
 (0)