Startup Scripts and order of operations

  • Goal: I am trying to get a few JS to run at startup of my app page. The scrips have been tested and do work in retool but in the startup process, it appears the JS is executed before API resources are made available. Is there a way to ensure the API resources are available prior to running JS automatically at startup. My goal is to query data from an API that will populate my user interface. Any JS that does not require access to API work every time.

Hello @David_Mottarella,

You can try to set up the Java script queries to run as success events of the API queries, in the event handler section. That way you ensure the API call always runs first.

Interesting idea I will explore that. Thank you.

1 Like

Success You rock thank you.

1 Like