diff --git a/src/utils/api.ts b/src/utils/api.ts index 19fab5ce..507b2ea1 100644 --- a/src/utils/api.ts +++ b/src/utils/api.ts @@ -94,6 +94,7 @@ const request = async ( return new Promise(async (resolve, reject) => { const streamOptions: FetchEventSourceInit = { ...requestOptions, + openWhenHidden: true, onmessage: (e: EventSourceMessage) => { if (onMessage) onMessage(e); },