JustFly1984 / react-google-maps-api

React Google Maps API
MIT License
1.78k stars 437 forks source link

Drawing manager not rendering #3140

Open rileymd88 opened 1 year ago

rileymd88 commented 1 year ago

Please provide an explanation of the issue

When trying to add a drawing manager to the map it does not render.

My Environment

os: windows

node --version v14.15.5 react version 18.2.0 webpack version 5.75.0 (react-scripts 5.0.1) @babel version 7.20.2 (react-scripts 5.0.1) @react-google-maps/api version 2.16.1

How does it behave?

The drawing manager does not render. If I am watching the build of my code and build it without the drawing manager and then add it on the fly then it shows up (although normally it shows up then 2 times)

How should it behave correctly?

It should show up on the first page load

Basic implementation of incorrect behavior in codesandbox.com

https://codesandbox.io/s/drawing-manager-not-rendering-7m2s18

Thank you!

waiyan13 commented 1 year ago

This is mostly due to new client rendering API in React 18. Library authors need to release a patch for it. For now, we can only fallback to ReactDOM.

federicoWax commented 1 year ago

DrawingManagerF es la solucion, is the solution