-
-
Notifications
You must be signed in to change notification settings - Fork 98
isArraysEqual - causes Uncaught TypeError: Converting circular structure to JSON #55
Comments
FYI, a tactical fix (that works for me) is: https://github.com/rm-hull/react-leaflet-markercluster/commit/e6d968b978c441f4f688ee9299676d9a6e80a5a1 - there's a good chance it improves performance slightly, as well. |
Hey @yuzhva, I've updated the fix to use |
I'm getting the exact same error.
I tried updating the version of: And I'm still getting this issue. |
@morsh - as a temporary measure, in your
And test it to see if it fixes your problem |
Using `JSON.stringify()`, when a marker has a popup created with `L.popup()`, rather than a straight string, then the following error is thrown: Uncaught TypeError: Converting circular structure to JSON at JSON.stringify (<anonymous>) at isArraysEqual See #55
Using `JSON.stringify()`, when a marker has a popup created with `L.popup()`, rather than a straight string, then the following error is thrown: Uncaught TypeError: Converting circular structure to JSON at JSON.stringify (<anonymous>) at isArraysEqual See #55
@rm-hull Maybe you know some tool, which I could use to add your profile to README.md with your avatar? |
Fixed by #58 |
If I create a marker with that has a popup created with
L.popup()
, rather than a straight string, then the following error is thrown:I believe it to emanate from https://github.com/YUzhva/react-leaflet-markercluster/blob/32de93f6e38a5c5ce164cc725ea2e86d8cc4f48e/src/react-leaflet-markercluster.js#L59-L68
It is not necessary to open the popup to cause the failure.
I had created the popup very similar to your demos:
and it occurs on removing markers (with the popup) from the map.
Update:
The text was updated successfully, but these errors were encountered: