mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Panels: Skip re-rendering panel/visualisation in loading state (#19518)
* Loading states and partial rendering, set loading state in mixed data source, and do not render loading states for react panels * Updated mixed data source tests
This commit is contained in:
committed by
Hugo Häggmark
parent
f2ef49f950
commit
0ec8303878
@@ -40,7 +40,11 @@ export class MockDataSourceApi extends DataSourceApi {
|
||||
if (this.queryResolver) {
|
||||
return this.queryResolver;
|
||||
}
|
||||
return Promise.resolve(this.result);
|
||||
return new Promise(resolver => {
|
||||
setTimeout(() => {
|
||||
resolver(this.result);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
testDatasource() {
|
||||
|
||||
Reference in New Issue
Block a user