Loading when fetching new External Data from API

Hello Guys,

I have a Repeating Group which get data from external API and often the parameters i sent (filters for a search) change. Every time one of these parameters changes the RG fetches new data but no loading spinner or top bar is shown.
Is there a way to do so ?

All RGs have a state called loading. You can add another element to your page and just set its conditional to be visible when any RG’s loading is “yes” and to hide when its loading is “no”

The problem is that i am calling the API from a parent non-repeating group and the response is something like this :

{
"totalCount" : 10, 
"submissions" : Objects [] #array of objects to display in RG
}

Basically i use totalCount for creating pagination and then i use submission for the children repeating group. Thus I cannot access the repeating group is loading.

Do you know any way i can fetch the loading from a group and not repeating group ? maybe i should switch to action API call and not data API call

If you did an Action then you could make your first step to show a loading screen/group element and your last step to hide the loading group element. Then do all the other actions in between. I don’t think you can access loading from a group.

Nice I did so and it worked perfectly ! I think i will have to change paradigm in all my application. Damn it