Change in timerange triggers requery

Hey everyone! I have the following question.
I would like to have my query function in the datasource.ts rerun every time my timeRange changes in the options. I see two obvious possibilities for this, but each time a problem pops up.

  1. I could put a useEffect in the QueryEditor in which I call onRunQuery every time. The problem here is that I can’t (I think anyway) get to my timeRange variable…
  2. I could place in my panel plugin a useEffect on the timerange property and then from my datasource call the query method. The problem here is that I don’t have MyQuery to pass along as a parameter…

how do I best solve this?

1 Like

I have the same problem. Did you figure out how to achive this?