-
Notifications
You must be signed in to change notification settings - Fork 51
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
Bug? Dynamic sources and layers #195
Comments
Hi @lapidus! Thanks for the issue! What version do you use? Could you please provide a reproducible example? |
Hi! It seems they had the same issue here: And resolved by removing layers before sources: |
I could try to do a PR later, any hints appreciated :) |
Gah, gosh! I just realized you fixed this 6 days ago: I was still on version 1.3. Sorry about that and thank you for a great lib! |
No problem, glad to hear that this worked for you :) |
I am rendering a dynamic list of Sources and Layers:
This works well on load but when I subsequently filter sources, I get this type of error:
It seems the mapbox operation under the hood is asynchronous so that I cannot delete a source in the same render as I delete a layer. How can I work around this? Or could you possibly build in some safeguards against this behaviour?
Thanks!
The text was updated successfully, but these errors were encountered: