Issue with MarkerClustererF Not Working in Next.js 13.5.4 with React Strict Mode Enabled #3295
gundogduyakici
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am having an issue with MarkerClustererF not working properly in Next.js with React strict mode enabled. I am using Next.js 13.5.4 and React 18.
In my previous version of Next.js (13.4.13), MarkerClustererF was working fine. However, after updating to Next.js 13.5.4, MarkerClustererF is not rendering properly.
The issue is that the markers are not clustering together. Instead, they are all rendered as individual markers.
I have tried the following solutions:
Disabling React strict mode in next.config.js
Using the useMemo hook to cache the MarkerClustererF instance
Both of these solutions resolve the issue, but I would prefer to keep React strict mode enabled.
I am wondering if anyone else is experiencing this issue? If so, have you found a solution that works without disabling React strict mode?
Beta Was this translation helpful? Give feedback.
All reactions