How to use “do every 5 seconds” correctly – Need help


when I use “do every 5 second” it’s as if the page restarts every 5 seconds, it doesn’t restart but it acts on “when page is load”… what happens when the “when page is load” repeats itself every time which makes it seem like the application is bug… the brothers of the community how I can correct this error

Generally you don’t ever use Do every 5 seconds correctly as there’s only a handful of legitimate use cases (exceptions of course but it’s generally true)

Share screenshots of your Do every 5 seconds workflow and someone can help you debug. Do every 5 seconds will run every 5 seconds. On page load will run, you guessed it, once when the workflow is first loaded to the page.

Unless you’re running a refresh this page action inside the workflow, that doesn’t make a lot of sense…

So can you explain more about the issue?

yes but I have the majority of workflow in reusable element…

Well then… you’ve got an infinite loop of reloading the page (as I previously guessed), although it’s got nothing to do with your ‘do every 15 seconds’ workflow.

You’re just constantly reloading the page.

excuse me it’s rather when use is logged in… validation code is yes which is displayed with do every 15s it redirects me to the page that I assigned to when use is logged in… .validation code is yes

in the first i wrote that
<when I use “do every 5 second” it’s as if the page restarts every 5 seconds, it doesn’t restart but it acts on @when page is load@… what happens when the @when page is load@ repeats itself every time which makes it seem like the application is bug… the brothers of the community how I can correct this error> it is not @when the page is load@ but [ When is logged in and current User’s verification code validation is yes]

:exploding_head: :melting_face:

Didn’t understand a word…

Anyway… You have 3 conditions that, together, will ALWAYS make your users go to de Index page…

  1. If the user is logged in and verification code validation is YES;
  2. If the user is logged in and verification code validation is NO;
  3. If the user is logged out;

There is no option other than these…

Retirement Inevitability – A Purple Life



2 Likes

everything works fine and it works well… until I added <do every 15s…>

You’re obviously completely misunderstanding what’s going on here…

Your issue has nothing to do with with the do every 15 seconds workflow…

As has already been explained, you have 3 conditional workflows… 1 of which will ALWAYS run, so you are continuously refreshing the page (which is what I guessed in my first reply)…

Those 3 workflows make no sense, so I’ve got no idea what you’re trying to do…

Maybe explain what you’re trying to achieve here and someone can offer some guidance…



1 Like

ok let me explain it’s for email verification.

  • so when the user “is logged in…code is yes” it means that the user has confirmed his verification code which was sent to him by email so he is directed to the home page…
  • when the user ” is logged in…code is no” the user has not confirmed his code which was sent to him by email so he is redirected to the page in which he will enter his verification code…
  • when the user “is logged out” he is directed to a page on which he is asked to connect or register…



Source link

Leave a Comment