Run interactions after a data query is done fetching?

I am trying to run either an interaction or code after a v2 data query is done fetching data. It’s similar to how in v1 data queries there was an “isloading” resource that allowed for checking if the data query is done.

I’ve tried using if (response == nil) to check if the response isloading, but it doesn’t seem to work. Adding a delay doesn’t work either.