dash-core-components icon indicating copy to clipboard operation
dash-core-components copied to clipboard

Include / exclude props that dcc.Loading component reacts to

Open Marc-Andre-Rivet opened this issue 6 years ago • 5 comments

From community issue https://community.plot.ly/t/loading-state-argument-in-dcc-loading/31936

  • Probably requires https://github.com/plotly/dash/issues/893 to be fixed
  • As part of this issue, we would want to hide loading_state from the generated API for the components -- this prop is generated by the renderer and it makes no sense for users to try and do anything with it
  • The loading component would now need the list of id/props that are being processed instead of a single prop https://github.com/plotly/dash/blob/dev/dash-renderer/src/TreeContainer.js#L322

New prop(s) for dcc.Loading

  • Allow users to provide an inclusion/exclusion list of props that the component will react to to enable it's "loading state"

Marc-Andre-Rivet avatar Nov 27 '19 18:11 Marc-Andre-Rivet

Seems like this is the same as: https://github.com/plotly/dash/issues/951

rredburn avatar Jan 21 '20 22:01 rredburn

This would be really nice. My use case is the following: long callback that returns a "children" with a child that is link to another callback. It makes sense to have dcc.Loading around the long callback but it doesn't when updating the child. At the moment, dcc.Loading is triggered with both callbacks. Having the possibility to exclude some ids would solve the issue.

HedgeShot avatar Aug 24 '20 11:08 HedgeShot

any news on this so far? In my case I'd like to exclude dcc.Interval from loading

luggie avatar Nov 09 '20 21:11 luggie

I'm also trying to use dcc.Loading and dcc.Interval together. It... isn't going well. Is this likely to be addressed or should the dcc.Loading documentation be updated to acknowledge this limitation?

KingSolomonEpstein avatar Apr 19 '21 21:04 KingSolomonEpstein

@Marc-Andre-Rivet @chriddyp What's new about this feature so far

CNFeffery avatar Jul 26 '21 10:07 CNFeffery

Has there been any update on this?

huong-li-nguyen avatar Apr 25 '23 11:04 huong-li-nguyen

@huong-li-nguyen I suggest you to use my relative components:

https://fac.feffery.tech/AntdSpin https://fac.feffery.tech/AntdSkeleton https://fac.feffery.tech/AntdCustomSkeleton https://fuc.feffery.tech/FefferyTopProgress

CNFeffery avatar Apr 25 '23 12:04 CNFeffery

Still very interested by this feature

florian6973 avatar Apr 27 '23 15:04 florian6973

closed by #2760

Coding-with-Adam avatar Mar 11 '24 16:03 Coding-with-Adam