diff --git a/package/src/ssr/NextSSRApolloClient.tsx b/package/src/ssr/NextSSRApolloClient.tsx index 3a10b677..69fdc4aa 100644 --- a/package/src/ssr/NextSSRApolloClient.tsx +++ b/package/src/ssr/NextSSRApolloClient.tsx @@ -124,6 +124,7 @@ export class NextSSRApolloClient< ); }); + promise.finally(cleanup); byVariables.set( varJson, (observable = new Observable((observer) => { @@ -134,8 +135,7 @@ export class NextSSRApolloClient< }) .catch((err) => { observer.error(err); - }) - .finally(cleanup); + }); })) );