MCPcopy Create free account
hub / github.com/expo/examples / useControls

Function useControls

with-webgpu/src/lib/orbit-controls.tsx:641–650  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

639
640// eslint-disable-next-line import/no-default-export
641export default function useControls() {
642 const controls = useMemo(() => createControls(), []);
643
644 return [
645 (props: OrbitControlsProps) => (
646 <OrbitControls controls={controls} {...props} />
647 ),
648 controls.events,
649 ] as const;
650}

Callers 1

FiberFunction · 0.85

Calls 1

createControlsFunction · 0.85

Tested by

no test coverage detected