Hello there, I’m developing a Flask app in which I include a Dash app as well. The problem is I need to update a Dropdown’s options, dynamically, depending on the
Flask-Login). Two options arose here:
- Add the options when initializing the app. Obviously, this does not work because
current_userhas not been initialized by the time Dash creates the Dropdown element.
- Use a callback. This seems the best option so far, but does not work because there is no
Inputto trigger the callback, as it should update only once, when loading the page.
I can’t imagine any other alternatives, and frankly don’t know how to solve this issue.