Skip to content

multiple outputs from callback #417

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

Closed
bearmountainsolutions opened this issue Oct 3, 2018 · 2 comments
Closed

multiple outputs from callback #417

bearmountainsolutions opened this issue Oct 3, 2018 · 2 comments

Comments

@bearmountainsolutions
Copy link

Please offer a better solution for this.

I have an interface with a dropdown and a radio group. Selections then trigger updates to 2 charts, a data table, and a daterange selector (start and end dates). Writing separate callbacks means repeating the same dependencies.Input clause in 5 places, as well as doing a similar data filter 5 times. Its not just a performance thing. It's resulting in repetitive and ultimately hard-to-adapt code.

I know you have a certain design philosophy but this is a real problem.

Why couldn't the callback clause have been designed to accept a list of depenencies.Output items?

@chriddyp
Copy link
Member

chriddyp commented Oct 3, 2018

Why couldn't the callback clause have been designed to accept a list of depenencies.Output items?

It actually has been designed to do this, we just haven't implemented it yet. We're focusing on other items first that customers have sponsored before we get to this feature.

This is a duplicate of #149

@chriddyp chriddyp closed this as completed Oct 3, 2018
@bearmountainsolutions
Copy link
Author

Thanks

HammadTheOne pushed a commit to HammadTheOne/dash that referenced this issue May 28, 2021
change sorting_settings to sort_by
HammadTheOne pushed a commit that referenced this issue Jul 23, 2021
change sorting_settings to sort_by
AnnMarieW pushed a commit to AnnMarieW/dash that referenced this issue Jan 6, 2022
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

No branches or pull requests

2 participants