Error Handling: support errors and data in a response (#20169)

This commit is contained in:
Ryan McKinley
2019-11-05 15:20:04 -08:00
committed by GitHub
parent 7a3d1c0e4b
commit 92ab4d80f0
9 changed files with 68 additions and 13 deletions

View File

@@ -376,6 +376,11 @@ export interface DataQueryResponse {
*/
key?: string;
/**
* Optionally include error info along with the response data
*/
error?: DataQueryError;
/**
* Use this to control which state the response should have
* Defaults to LoadingState.Done if state is not defined