React freezing when running a development localhost server trying to render a Circle #3009
-
Has anyone had problems like this? Been googling and reading all the docs, can't find anyone having this issue. I've been building a react app with a google map that was mostly working in dev server - though oddly my five Markers were disappearing off the map after their first time rendering. I added a Circle and now the map won't load and the entire page becomes unresponsive when I start up the dev server. The live build of the same code works fine, displaying the circle and markers correctly. Removing the Circle component lets the page load normally (the disappearing Marker issue remains). Again all of this works fine on live. Any idea what could be causing this? Running React 18. Also this is my first time asking on github so if more info is needed let me know. Here's my package json, below: Thanks for reading! { |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
@davejharmon try to update react to 18.1 |
Beta Was this translation helpful? Give feedback.
-
I believe I've fixed this myself by moving from Marker and Circle to MarkerF and CircleF respectively. An interesting knock on error: MarkerF isn't correctly updating marker icons when I remount them on a state change -but this is a much smaller problem for the dev server! I assume that's a bug that will get cleaned up in time. |
Beta Was this translation helpful? Give feedback.
-
@davejharmon can you please make a minimal repro of MarkerF issue in codesandbox.io? All those F components are not tested - I just wrote it out of my head. This will help me to understand how to fix it. |
Beta Was this translation helpful? Give feedback.
I believe I've fixed this myself by moving from Marker and Circle to MarkerF and CircleF respectively.
An interesting knock on error: MarkerF isn't correctly updating marker icons when I remount them on a state change -but this is a much smaller problem for the dev server! I assume that's a bug that will get cleaned up in time.