From db57b902f93ba5a27823d7049b222bddd2d7cf9f Mon Sep 17 00:00:00 2001 From: Ahmed Tarek Date: Mon, 31 Jan 2022 23:43:07 +0200 Subject: [PATCH] fix executing standby queries in ssr --- src/react/hooks/useQuery.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/react/hooks/useQuery.ts b/src/react/hooks/useQuery.ts index 363ca3ba3a3..73dbcc44e70 100644 --- a/src/react/hooks/useQuery.ts +++ b/src/react/hooks/useQuery.ts @@ -53,6 +53,7 @@ export function useQuery< if ( context.renderPromises && + options?.fetchPolicy !== "standby" && options?.ssr !== false && !options?.skip && obsQuery.getCurrentResult().loading