Page load delay does not take retool variables

Hi there,

i noticed a bug when trying to delay resource queries based on a variable.

It only works when directly inputting 5000 as number.

Hi @OliverSo ,

This is a bug, thank you for reaching out! I've logged this will the team and will update here when it's fixed.

1 Like

Hello! I just encountered the same bug. Are there any updates on when it will be fixed? Also, do you have any recommended workarounds?

Hi @Nayan_Vaish Thanks for checking in! Unfortunately, this is still in our backlog to be fixed.

In the meantime, you may be able to workaround this by having a dummy Javascript query on page load (something that just console logs). You can put the actual query you want to trigger on success of the dummy query and put your logic for the delay in "Run event handlers after (ms)":

It's not a perfect solution since it requires an extra query, but hope it helps in the meantime

Hi @Tess Thank you so much! that worked! :slight_smile:

1 Like

Glad to hear!