-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Wildcard callbacks during app initialization behave improperly #1247
Comments
This was referenced Sep 15, 2021
This was referenced Jun 21, 2023
This was referenced Nov 27, 2023
This was referenced Dec 20, 2023
This was referenced May 13, 2024
gvwilson
changed the title
[BUG] Wildcard callbacks during app initialization
Wildcard callbacks during app initialization behave improperly
Aug 13, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using
dash==1.12.0
Looking at the dash-renderer test
cbmo003
(https://github.com/plotly/dash/blob/dev/tests/integration/callbacks/test_missing_outputs.py#L187), the initialization behavior seems to be incorrect.The callbacks are:
cb1. items.n_clicks -> (content1.children, content2.children) , children of content1 are of shape {i: number} , children of content2 are of shape {j: number}
cb2. values.n_clicks -> ({i:ALL}.children, {j:ALL}.children)
cb3. ({i:ALL}.children, {j:ALL}.children) -> output.children
At initialization, cb1 and cb3 are triggered
Expected behavior
We trigger cb3 again after assigning the children values after cb2 , similar to the
followForward
cases. The problem becomes more apparent when changing cb2 to return, for example, 5 instead of 0 on the None case — the test now displays the screenshot below, showing that it never really used the children content to calculate itself during initialization.The text was updated successfully, but these errors were encountered: