Open r1beguin opened 3 years ago
Hey Buddy! I think it is more a question for StackOverflow than here. But you probably already figured out the issue and forget to close this issue? I see 2 issues in your code:
globe && globe.updateMarkers(marks);globe && globe.updateMarkers(markers)
that are probably conflicting with the state since the setMarkers
is executed asynchronously whereas your globe.updateMarkers calls are executed synchronously. Does it work if you delete these 2 lines?
I am trying to track satellite position around the globe in "almost" real time via TLE data. I am using React hooks to initialize the marker state, and a useEffect to update the marker state. However, while I can monitor that the coordinates of the markers are indeed changing, the rendered position on the globe is not moving. I have to reload the whole page to have the marker move.
`
`