Hello,
I was wondering how to wait the request in datasource to display the QueryEditor.
I try with delay and timer but doesn’t work.
Nicolas
Hello,
I was wondering how to wait the request in datasource to display the QueryEditor.
I try with delay and timer but doesn’t work.
Nicolas
Hi @nicolasdossantos248 if you are writing javascript/typescript code your request should return a promise that you can either await
or use as a regular promise with then
Hello,
I already try with delay but the thing is the query editor is loaded before the request start so at my first load the data is not updated.
I am not sure what you mean by “delay”. There should not be any time-based logic to run a query. My best advice is to take a look at the datasource example: grafana-plugin-examples/examples/datasource-http at main · grafana/grafana-plugin-examples · GitHub