You have all the info
You haven’t posted a screenshot, the data source, the group structure, the conditionals, the search constraints, whether get data from page url or do a search for, whether group 1 is loading the data or receiving it, what’s inside group 2/3…
it’s all been very vague
??
A product page
Group1 is product, (Data source search for product slug = get data from page)
Inside group1 there is group2 and group3.
Group3 says: This product is not available,
Group2 is the product attributes like image other stuff
When URL is wrong or product is not available anymore I want to show group3, else group2.
Its an SPA.
If you use group1’s data source is empty group2 is visible, else group3 is visible, ıf you do that, then group3 will flash, because Bubble has no default “Finished requesting”, so group will be empty if not populated. Page loaded entirely doesn’t workA product page
Group 1 doesn’t have a loading state, it’s a single item, so while the search is still running Bubble treats it as empty. That means Group 3 (‘not available’) shows first, then once the product loads Group 3 hides and Group 2 shows.
That flicker is exactly what I’ve been trying to explain.
To avoid that, you need something with a real loading state (like a hidden RG or loader group) to decide when to show Group 2 vs Group 3
If Group1 is product and you are searching for slug based on get data from page, are you using parameters or path list? If parameters, there is no benefit to using the slug, as parameters are no good for SEO, so doesn’t matter really that you use slug, so should just instead use the unique ID, which you then just use the Get Data from URL parameter and set the type (don’t just keep it as text) to product and bubble will automatically get the correct product from DB as that works just like current page thing but for URL parameters, and if you do that, you can then just reference ‘is empty’ after that get data from URL and if there is no match, it would evaluate to Yes.
If you are using path list, perhaps using conditional of count is 0 as count would likely come back faster than the actual product, but in my experience the single item search is near instant and shouldn’t really even cause a flash, so it could be based on the way your conditionals are.
Maybe share a video demonstration of what you are experiencing and going through how you have it setup so that you could potentially get some alternative ideas on how to resolve the issue you are having. Might even be something that if you are really experience a significant issue, you resolve with workflow actions to load the group 3 or 2 based on result of a page is loaded fetch, and have nothing shown until that finishes.
Path list.
Product is empty, Banner showing Click this link, I want to implement this. Can’t do with out flash in SPA. Because a data is empty can be Literally non existent or not fetched yet.
I think you should hit up AI and use it to hone your questions. It will help you relentlessly and it’ll put up with your limited ability to show gratitude.
Watch it.