Learn how to use Dash Bio for next-gen sequencing & quality control. 🧬 Register for the Oct 27 webinar.

Callback is slow with multiple quick changes on inputs

I have a dash app that has 3 input fields. The first input field has say 5 selections, the second input has roughly 100 selections, and the third input has 12. As a user I may add or subtract selections rather fast. When that’s the case I can see the callback running every time. For example if I add 20 selections on the second input my callback gets ran 20 times and creates a slow down.

Is there a way where I can tell the callback to stop if it’s being called again?

I’ve added a button and changed dropdown’s with long lists (even smaller lists) to State’s, then call my callback with a button push.