[SOLVED] When I use a search for both my data and conditional, does Bubble do the search twice?

I often use a search for my data source and then use the same search in my conditional, usually to show the element if the count is greater than 0.

Does Bubble do that search twice or is it smart enough to do it once?

If it does the search twice, would I be better to put the search in a custom state and then use the custom state for both my data and conditional (or something like that - I haven’t tried it)?


This was asked in the linked post below, and answered by Josh :slight_smile:

“For example, if I have a dozen elements that need to run the same search, is it better to have one hidden element run the search and then have the visible elements reference that hidden element’s value?”

Generally, no. Bubble is smart enough that if two things do the exact same search, it’ll be able to combine them automatically.

1 Like

Thanks @fayewatson :rofl:

1 Like