yuzhva / react-leaflet-markercluster

React wrapper of the official Leaflet.markercluster for react-leaflet
https://yuzhva.github.io/react-leaflet-markercluster/
MIT License
285 stars 99 forks source link

When "react-leaflet-markercluster" will support react-leaflet 4? #196

Closed iamrraj closed 1 year ago

iamrraj commented 1 year ago

I am trying to react-leaflet-markercluster on react-leaflet but i could not because they error like this Invalid hook call. Hooks can only be called inside of the body of a function component because i have multiple marker that overlapping on each other.

jaballogian commented 1 year ago

hi @iamrraj

I think your issue is the same as this issue https://github.com/yuzhva/react-leaflet-markercluster/issues/187 Currently, I use this marker cluster library https://github.com/yuzhva/react-leaflet-markercluster/issues/187#issuecomment-1175025801 for react-leaflet v4 and react v18

iamrraj commented 1 year ago

Thanks ,Exactly it helped me to solve my problem,