Significant delay/lag in "Do when condition is true" (Every time) workflows

Hello everyone,

I’m running into what seems to be a performance issue where workflows triggered by “Do when condition is true” (set to run “Every time”) are experiencing significant delays across my entire app.

I’ve recorded a video demonstrating the behavior. In this example, I have a Reusable Element (RE) for a color picker that shows a preview of the selection. The RE uses a “Do when…” workflow to update its internal states, as you can see in the following image:

The issue: As you can see in the video, the state remains empty for several seconds after the input changes. Eventually, the workflow kicks in and functions correctly, but the lag is making the UI feel broken and, even worse, causing problems when the user executes an action that depends on a state value that hasn’t been set yet because of this issue.

This is happening globally, not just in this one element.

Has anyone experienced this kind of “scheduling” lag recently? I’m struggling to find the root cause and would appreciate any insight!

I guess it could be the several calls and check conditions. You have 3 conditions happening at the same time. Try using 1 condition and check the speed again.

1 Like

Experienced the same kind of buggy behavior recently. No explanation for why it was happening after testing extensively. I decided to rebuild my feature to not use it, but bubble should be alerted to the bug so they may elect to fix.

3 Likes

Hey @renatosbispo :waving_hand:

I suspect the issue might be related to multiple triggers connected to coexisting things, which could be causing some kind of loop. Try disabling two of those triggers and then re-enabling them one by one to identify exactly where the problem is.

1 Like

@th18 @rpetribu Thanks for the suggestions. I will make some changes and test to verify if that’s the issue.

@boston85719 I’m also afraid this might be a bug. If I can’t figure it out, I will try to do the same as you did. Thanks for chipping in.