Skip to content
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

Functions running too often on page load and callback #116

Closed
wtluke opened this issue Aug 17, 2017 · 0 comments · Fixed by #128
Closed

Functions running too often on page load and callback #116

wtluke opened this issue Aug 17, 2017 · 0 comments · Fixed by #128

Comments

@wtluke
Copy link

wtluke commented Aug 17, 2017

On page load, Dash serves the initial layout (when provided in a function) more than once. I've seen it run one of my "initial" functions at least 20 times. Likewise, if you have 5 inputs, a callback's function is running 5 times even if not all of those inputs have changed or fired. Caching has helped, but it still seems really inefficient and others have noticed similar behaviour.

Have a look here for more details.

HammadTheOne pushed a commit to HammadTheOne/dash that referenced this issue May 28, 2021
HammadTheOne pushed a commit that referenced this issue Jul 23, 2021
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

Successfully merging a pull request may close this issue.

1 participant