There is probably a simple solution, but after searching for a while anyway, I haven’t found one yet so here it is…
I am currently building a panel plugin and datasource plugin. I would like to re-run a query every time the timerange is changed (i.e. if to or from changes)? How exactly can I do this?
I can’t get my options variable (from the DataQueryRequest interface) into my QueryEditor where I could do a useEffect and call the method runQuery. In my panel plugin, I can do a useEffect on a changing timerange, but don’t have the same MyQuery to call datasource.query(…)…
What is the most elegant way to solve this?