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:
Torkel Ödegaard
2019-10-01 10:22:41 +02:00
committed by Hugo Häggmark
parent f2ef49f950
commit 0ec8303878
4 changed files with 73 additions and 39 deletions

View File

@@ -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() {