Order of Operation

Hello everybody!
From what I’ve noticed, when I trigger a custom event that has a check in the “only when” field to verify if the user is logged in, all actions seem to wait first for the verification to be true before being executed. And it doesn’t matter if triggering the custom event action is the last step because the first one will be slow. More details below:

I created a workflow for a button to close a popup, and in the next step, it triggers a custom event that updates a client’s field. So far so good; the workflow hides the popup at lightning speed and updates the client’s name.

Problem: I created another button and replicated the same situation. The difference is that, in the custom event, I added a condition (in the ‘only when’ field) to check if the user is logged in. Now, when clicking the button, the first step (hiding the popup) experiences a delay.

Apparently, the delay is caused by the condition I added in the “only when” field of the custom event, although I’m trying to understand how this affects the step of closing the popup since it occurs before the condition check of the custom event. If I remove the condition, everything goes back to normal.

Editor: Laboratoriosemcodar | Bubble Editor
Page demonstrating the popup closing delay: Teste Popup (bubbleapps.io)

1 Like

Adds to the stack of frustrations of expected behaviour / capabilities in Bubble
Seriously at a point where I - after 11 mths of bubbling and trying to build a Saas with Bubble - think of just dropping everything I’ve got here and build it the old fashioned way

New Bubblers, beware!

Hello bubblers,

Given the updates since the 1st post. And the new format. Has the order of operations changed. The new user interface shows the workflow in steps now top to bottom. Does that mean it actually completes step 1 before step 2 now. Or do they both still run simultanously? A burning question

Ex: will all 4 steps run once the button is click or will it truly be 1 → 2 → 3 → 4 as it looks?

All steps run as soon as all data that is required for them is available

1 Like

If you need it to complete certain steps before, use custom events.

1 Like

1, 2 and 4 will run in sequence because they are client side actions. Step 3 will run as soon as it has all the data it needs because it’s a server side action.

So for example if the values you are changing are all from input elements it will run in parallel with the first step.

This ensures it runs in sequence because custom events are considered clientside actions.