Rendering: Fix streaming panels always reaching timeout (#80022)

This commit is contained in:
Agnès Toulet 2024-01-11 12:37:21 +01:00 committed by GitHub
parent 6c87d9a1e7
commit 31b02a8c9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -460,7 +460,12 @@ export class PanelStateWrapper extends PureComponent<Props, State> {
};
shouldSignalRenderingCompleted(loadingState: LoadingState, pluginMeta: PanelPluginMeta) {
return loadingState === LoadingState.Done || loadingState === LoadingState.Error || pluginMeta.skipDataQuery;
return (
loadingState === LoadingState.Done ||
loadingState === LoadingState.Streaming ||
loadingState === LoadingState.Error ||
pluginMeta.skipDataQuery
);
}
skipFirstRender(loadingState: LoadingState) {