Button n_clicks resets after click / callback is triggered multiple times within a few seconds

Well, as @yanboe mentioned, it’s hard to help without a minimal example that reproduces the error. For more info see: How to Get your Questions Answered on the Plotly Forum