async-dash icon indicating copy to clipboard operation
async-dash copied to clipboard

dash.callback_context.triggered_id is only available from a callback

Open randomcodemachine opened this issue 2 years ago • 1 comments

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!

randomcodemachine avatar Oct 05 '22 08:10 randomcodemachine

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

Erraen avatar May 15 '23 12:05 Erraen