Is there a way to execute some action first time ref.current becomes available?
In React I am using @react-three/fiber
for the 3D stuff.
There are a lot components that don’t support declarative way of doing things and require refs and imperative code (e.g. CameraControls
from drei).