Linoy Bar-Gal
ย ยทย CEO at Sorti

Asynchronous functions

Resolved

Hello everyone,

I am attempting to create a query that initially retrieves a reference when my first page loads (Action on page loads). This reference is then used to obtain all documents where one of their fields matches this reference. Subsequently, a component is displayed or not based on the existence of this list. The sequence of actions is as follows:

  1. Retrieve the reference (dependent on a condition).

  2. Utilize the reference to get a list of documents, which are then displayed in a grid view.

  3. Depending on whether a list of documents exists, display the grid view or another component.

Since these are all asynchronous functions, do the actions in the action flow await completion? Are they asynchronous? Or is there another way to write asynchronous actions besides creating the functions myself?

Furthermore, which operation is executed first, the action (on page load) or the page root backend query? What is the best method to obtain the information for a grid?

Thank you for your help,
Linoy

3
4 replies