Hi, I have an app which loads data from a database into Store object and then plots it. As database load takes some time I’d like to show Loading component.
I have tried to use the following, but Loading component does not appear.
html.Div([ dcc.Loading( dcc.Store(id="my-data") ) ])
I appreciate that I don’t locate Loading component at the relevant part for the page, but it is not clear to me how I can do it. With loading on charts it is straight forward, as you put them together. Maybe I can locate Loading component separately next to a button and trigger spinner, but how I can link it to data update success?