Why would onLoad be called twice?
#3243
|
I've got a When it renders in browser, My |
Replies: 2 comments 1 reply
|
center={MilwaukeeLatLng} for center if you are using object of lat lng try to memorize that. |
|
Ugh.... Found the reason. |
Ugh.... Found the reason.
It's related to React 18 strict mode and dev mode.
https://stackoverflow.com/questions/71847778/why-my-nextjs-component-is-rendering-twice
https://legacy.reactjs.org/docs/strict-mode.html#ensuring-reusable-state