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
// reset map fit bounds whenever MapView is mounted
resetFitBounds();
},[resetFitBounds]);
Heads up that the Recoil state here works fine with React 17, but crashes with the new createRoot(node).render() in React 18. Moving the Recoil state down into individual components fixes it. I think that the React Map GL Map component crashes if it renders while suspended, but only with the new concurrent rendering API.
irv-frontend/src/map/MapView.tsx
Lines 26 to 44 in e32a9ba
Heads up that the Recoil state here works fine with React 17, but crashes with the new
createRoot(node).render()
in React 18. Moving the Recoil state down into individual components fixes it. I think that the React Map GLMap
component crashes if it renders while suspended, but only with the new concurrent rendering API.See also:
The text was updated successfully, but these errors were encountered: