Skip to content

Conversation

@disarticulate
Copy link
Contributor

I'd debounce as much as possible, maybe segregate. But vue crashes development mode with sub ms events.

I'd debounce as much as possible, maybe segregate. But vue crashes development mode with sub ms events.
@KoRiGaN
Copy link
Collaborator

KoRiGaN commented Mar 27, 2018

Hi @disarticulate,

Thanks for your pull request.
This should be done in your own application. Vue2Leaflet is just a wrapper of Leaflet and I don't want to debounce event with some fixed rate.

I'm closing this request as it will modify Leaflet behaviour and limit potential usages.

Micka

@KoRiGaN KoRiGaN closed this Mar 27, 2018
@disarticulate
Copy link
Contributor Author

disarticulate commented Mar 27, 2018 via email

@KoRiGaN
Copy link
Collaborator

KoRiGaN commented Mar 27, 2018

Event handling have been simplified from v1.0.0 and nothing happens in Vue2Leaflet.

So if you do not set any event handler nothing should happens.
If you set an event handler just set an debounced one.

Micka

@disarticulate
Copy link
Contributor Author

disarticulate commented Mar 27, 2018 via email

@KoRiGaN
Copy link
Collaborator

KoRiGaN commented Mar 27, 2018

Do you have an example/list of step that make devtools crash ?

It doesn't crash on my side.

@disarticulate
Copy link
Contributor Author

disarticulate commented Mar 27, 2018 via email

@KoRiGaN
Copy link
Collaborator

KoRiGaN commented Mar 27, 2018

Please give Vue2Leaflet v1.0.1 a try first.

I'm pretty sure it fixes your issue.

@disarticulate
Copy link
Contributor Author

disarticulate commented Mar 27, 2018 via email

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