Trigger callback depending on another callback's behaviour

Hello everyone!

I would like to trigger a Dash callback depending on a behaviour of another callback.
Specifically, I have a map which is loaded through a callback. Let’s call it “map callback”.
I would like to create another callback, which creates an HTML element with the “Loading” text, when the map callback is triggered, and then removes this element when the map callback produces its output.
In other words, I would like to show that the map is being loaded, so that users would know that the output is pending and there is no error etc.
I would be very grateful, if you could show me a way how to do it or point at some topics/docs with a description of similar functionality.
Thanks in advance for your help!

Hi @plotlik, I’m pretty sure the dcc.Loading component does exactly what you’re after. Here’s the documentation. Hope that helps.

Thank you! That’s exactly what I’ve been looking for