import { PointerLockControls, PointerLockControlsProps } from '@react-three/drei';
const plControls = useRef<PointerLockControlsProps>(null!);
<PointerLockControls ref={plControls} />
given the above, I’m getting the error
Type 'MutableRefObject<PointerLockControlsProps>' is not assignable to type 'Ref<PointerLockControls> | undefined'.
I tried setting plControls to useRef but that doesn’t work since PointerLockControls isn’t a type. Any workarounds or help to the problem is appreciated!