Why would onLoad
be called twice?
#3243
-
I've got a When it renders in browser,
My
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
center={MilwaukeeLatLng} for center if you are using object of lat lng try to memorize that. |
Beta Was this translation helpful? Give feedback.
-
Ugh.... Found the reason. |
Beta Was this translation helpful? Give feedback.
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