You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @haveamission, sorry for the late reply. I've been really busy the past few weeks.
This issue sounds related to not memoizing the initialCoordinates (or defining it outside of the component that is rerendering and causing the array prop assignment to be recreated, which triggers re-rendering). A note that react-globe doesn't handle this layer since it's a React-specific behavior. In the future, we might consider auto-memoizing these internally, but I want to see if this becomes a more common issue that the library should handle it.
I have a globe as such:
When adding the following prop:
initialCoordinates={[29.7604, -95.3698]}
The globe disappears after a brief flash.
I tried to setup a code sandbox, but got an infinite loop when adding react-globe and three.js
The text was updated successfully, but these errors were encountered: