Let’s say it is used to display a picture. First, we look at the required list; if there are no pictures there, then we load them from the default list.
Question:
Will Bubble load only the first part of the expression, and if it is empty, will it additionally request the second part of the expression (that is, Bubble works more optimized)
or
it will immediately evaluate both parts of the expression and then check if the first element is empty. (not optimized as lists can be huge with complex filters)
Thanks
Just out of curiosity I have decided to try this. I have created a text field and dynamically set the text of it from an open API endpoint (https://www.boredapi.com/api/activity) and defaulting it to another API endpoint in case the first one fails (https://catfact.ninja/fact). When I have analyzed the network traffic, bubble called both API end points even if the first one is visible succesfully.
The first API endpoint prints a random activity successfully.