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

dash.callback_context.triggered_id is only available from a callback #2

Open
randomcodemachine opened this issue Oct 5, 2022 · 1 comment

Comments

@randomcodemachine
Copy link

Hi, thanks for making this package, it works well! Only error I had now is when I tried to use triggered_id = ctx.triggered_id within a callback function, it gives this error: dash.callback_context.triggered_id is only available from a callback. I need access to this variable in order to distinguish which input triggered the callback function.

Did I miss something and how should I fix it? Thanks!

@Erraen
Copy link

Erraen commented May 15, 2023

A simple method (without adding code to this package) is to use quart.q instead of ctx.

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