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
My workaround to this was to use useEffect when the globe object was available, and also use a kinda yucky setTimeout.
// Only run once the globe object exists
useEffect(() => {
if (!globe) {
return;
}
// Wait a second and re-add the same options
setTimeout(() => {
globe.updateOptions(options);
}, 1000);
}, [globe]);
I stripped the code down to what you see below, and 10% of the time the options don't load on page load. Any ideas?
The text was updated successfully, but these errors were encountered: