Closed beachstrider closed 10 months ago
@jasonmz thanks for reaching out. This is more relevant to the react-globe.gl repo, or perhaps even nextjs itself. In any case, here's an example from that repo that uses a ref. Does that not work for you? https://github.com/vasturiano/react-globe.gl https://github.com/vasturiano/react-globe.gl/blob/master/example/world-population/index.html
In nextjs, I imported it using dynamic import. Now the ref doesn't work as I am trying to access an original threejs object. Tried react forwardref, but no success, here is my implementation: