Detect double click on callback for reset data

I have a bar graph and a table on my Dash app. When the user clicks on a specific bar, the data rendered on the table changes. It works fine, but I need to detect a double click on the same callback to reset the table content to entire data.


Not sure it’s the most elegant, but on the first click, you can store the current time (via dcc.Store). On a subsequent click, you can compare the current time to the stored time, if less than some value that works (i.e. 100-500ms), then consider it a double-click.