Issue with custom states not reflecting updated database values

Steps to reproduce:

  1. When the page loads, the user makes a dropdown selection that triggers a workflow which updates CustomState1 based on a search of Table1.

  2. A button triggers another workflow that makes changes to records in Table1 — the same table that CustomState1 pulls from.

  3. In that button workflow, I included an action that reassigns CustomState1 using the exact same search as in step 1. (Copied and pasted the action, no differences.)

  4. After this runs, CustomState1 now shows fewer records — e.g., 159 instead of 163 after modifying four records.

  5. However, if I manually refresh the page, CustomState1 repopulates with the correct total (163).

What I’ve tried:

  • Emptying the state first, then resetting it.

  • Sorting by Modified Date or Created Date.

  • Adding a short pause before the reset.

  • Ensuring I’m not using :unique elements or client-side filters.

None of these change the outcome — the list in the custom state only becomes accurate after a full page reload.

Has anyone seen this before? It seems like Bubble is caching the old client-side list and not re-pulling the updated records, even when I explicitly run a new “Set state” with the same search.

Goal:
Force the custom state to reflect the freshly updated records from the database without needing to refresh the page.

Did you tried doing another Search, and useign it , because it can the previous search does not have newer data.

One more thing, I suggest use Hidden Variable rather then Custom State. it will always be sync with you database.

if you can tell me you flow i can be in help. or ping me we can debug it togather. ?