Know when a repeating group is loaded - solved

It’s been bugging me for quite a while , to know if a repeating group has finished loading or not.

Today I’ve tried a super simple solution and it worked. I still did not test it thoroughly in many more situations, but I’m feeling optimistic.

It’s this simple: lets say the repeating group is called “RG”.
So it’s simple as checking RG’s count is RG’s count as a condition. I know it sounds stupid , but it just worked for me. It seems like it will force bubble to full calculate the RG’s final length and return true only when its actually finished populating it.

I’d love to know if this works for you.

Amir

3 Likes

Thanks for sharing. I love TIL (today I learned) type of stuff.

If you want more functionality for loading and iterate through the list, take a look at List Shifter.

Could you share your WF/condition?

What exactly is the difference in native “is loading” and this one? Are you suggesting that that one becomes false even before RG is loaded fully?

Yes. As said by Bubble support: “If you have a large amount of data for the RG, the ‘is loading’ state might not work as expected because it is based on when the searches in the RG returns data and not necessarily when it is displayed on the page.”

In other words, it does not work as anybody would expect it to, so basically doesn’t work.

This will work if you are not using pagination…and it think if the rg count is 0 (ie: it is not loaded yet) that will still show rg count is rg count as true…should add an add operator to be and rg count is greater than or equal to 1.

1 Like