Setting the value of state using function setValue()

Got it. It is asynchronous. I believe.

However, I think that for your use case, you can use additionalScope to pass the values to the queries you're triggering.

Or am I understanding this incorrectly?