Query triggered by element action - how to use such data in other elements?

I have created a component that contains an element that triggers a Postgres query on onClick action. Now I would like to populate the data in other element of the same component, but I am not able to refer to it - it does not appear in component’s Data queries list. So - how do I refer / use the data fetched via action? Thanks in advance.


Hi, you can create a state variable and use a Update state interaction, Interactions docs