async-dash
async-dash copied to clipboard
dash.callback_context.triggered_id is only available from a callback
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!
A simple method (without adding code to this package) is to use quart.q instead of ctx.