I have a Leaflet map in a react app, and I'm using react-leaflet-markercluster in order to cluster markers that are on the exact same coordinates.
I also have a request I make every 5 seconds to get the markers, mostly they are the same markers, but still, when clicking on a cluster marker, after that 5 seconds, all markers are re-rendered, and the spider closes.
You can try and see it in this demo (click and wait, the spider closes): https://stackblitz.com/edit/cluster-keeps-rerendering
Does anyone have an idea of how this can be solved?