Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a little annoyance with hot module reloading #351

Merged
merged 1 commit into from
May 24, 2024
Merged

Fix a little annoyance with hot module reloading #351

merged 1 commit into from
May 24, 2024

Conversation

machour
Copy link
Contributor

@machour machour commented May 24, 2024

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.

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.
@domoritz domoritz merged commit a4b6cc2 into domoritz:gh-pages May 24, 2024
@machour machour deleted the patch-1 branch May 24, 2024 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants