Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a little annoyance with hot module reloading (#351)
Hey, Thank you for this package! I'm using it with react-leaflet for a remix-run app. I consistently have an issue when editing code, and hot module reload happens. It seems that somehow the map instance gets destroyed before the _unload() event handler runs, hence this patch. Let me know if you think there's a better way to do it.
- Loading branch information