I am trying to update a graph based on a dropdown. The graph and dropdown are dynamically created with the same processNames as an index. They are guaranteed to be unique yet I am getting the overlapping wildcard.
I found my answer buried in an obscure spot on the dash.plotly.com page:
@dash.callback won’t work in projects with multiple app declarations. (If you are using multiple app declarations to create a multi-page app, remember that this is not officially supported and consider changing to the recommended dcc.Locationmulti-page app solution).
Problem resolved. I was importing the dataprovider I instantiated from the main app.py file which had the app.layout. This was causing the page to fire the callbacks more than once. I moved the dataprovider instantiation to another file and instantiated it there and then imported it so I could use it throughout the application.
Hi @dwmorris
Do you mind sharing more details about this? I ran into this problem too, where a multi-page app, when importing another pattern-matching components and instantiate it in my app.py, I got the same errors. How did you solve this?
Thanks in advance!