Skip to content

Commit 6b5f7e8

Browse files
committed
chore: better types for the base layer ref
1 parent 849aa1f commit 6b5f7e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/layer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function Layer(
106106
}, [optimizedRendering, xrUiContext.optimizedRendering]);
107107

108108
const groupRef = React.useRef<THREE.Group>(null);
109-
const meshRef = React.useRef<THREE.Mesh>(null);
109+
const meshRef = React.useRef<THREE.Mesh<THREE.PlaneGeometry, THREE.MeshBasicMaterial>>(null);
110110
const materialRef = React.useRef<THREE.MeshBasicMaterial>(null);
111111
const childrenGroupRef = React.useRef<THREE.Group>(null);
112112

0 commit comments

Comments
 (0)