Skip to main content

Why does my navigation workflow run more than once when a button is clicked quickly?

Bubble's safety mechanism for in-flight navigation creates a brief window where a workflow can be re-triggered. Rapid button clicks can cause the workflow to fire more than once.

Written by Sofia Maconi

When a user clicks a button multiple times in quick succession, Bubble's safety mechanism — which prevents in-flight actions from being aborted during navigation — creates a brief window where the workflow can be triggered again. This can cause a navigation workflow to fire more than once.

What you might notice

  • Clicking a button rapidly triggers the workflow more than once

  • A navigation action fires multiple times, causing unexpected page transitions or duplicate data changes

Workaround

Add a custom state to the button to track whether it has already been clicked, and add an "Only when" condition to the workflow so it only runs when the button is in its unclicked (pristine) state. After the first click, the custom state changes and prevents the workflow from triggering again. You can read more about workflow execution rules in the documentation.

Did this answer your question?