Skip to content

What would be the ref type for components like Orbit-control #719

Answered by drcmda
WenheLI asked this question in Q&A
Discussion options

You must be logged in to vote

drei uses three-stdlib, so it's this type: import { OrbitControls } from 'three-stdlib'

btw you can't rely on refs outside of canvas. they will not be filled in useEffect because canvas is a different react root.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@xbtmatt
Comment options

Answer selected by joshuaellis
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
4 participants
Converted from issue

This discussion was converted from issue #718 on January 13, 2022 09:38.