I decided to turn my app native with BDK which has some pre-requisites. One of which is that everything is on a single page. So, I moved the sign up form from the index page into a group which is shown and hidden accordingly. Testing is being done in the BDK native app but the issue is the same in a normal browser.
During testing, I found that if a user is already logged in when the app starts up, everything is ok. A RG of users based on some filters is loaded and displayed. All good.
However, if the user has just signed up or logged in, then the group shows up but without populating the RG.
Opening up the app when already logged in:
Now I log out of the app, shut the app down and relaunch.
For testing, I added a popup to display the currently logged in users details before making the group visible, just to make sure there was an actual user available for the filters to work on.
Which verifies a user is logged in:
But then when I dismiss the popup, i’m presented with:
If I go and change the search parameters (from within the app), like modify the age range i’m interested in, then the RG is populated.
I’ve tried about 10 different things which I didn’t document (lesson learned) but only one worked but I couldn’t reproduce it without messing things up.
The one that worked was to open up a distance slider popup which has autobinding to the current user. Without changing anything on the slider, closing it reveals a populated RG. However I was unable to reproduce this by using states in the background without affecting the UI.
Everything else i’ve tried has failed but all are based around Page loaded (entirely), scheduling custom workflows, using popups for the login and having the page open in the background from the start… I tried pre-populating a state with the first 10 results and using that as a data source. Nothing.
Assuming this was being caused by the group being hidden, I made sure it was visible on page load but still nothing.
I found this thread but fail to see how to apply his solution: https://forum.bubble.io/t/force-repeating-groups-to-load-while-hidden/21613