From 739375741e732addac3d401376785f1d9d491f92 Mon Sep 17 00:00:00 2001 From: Ahmed Tarek Date: Wed, 4 May 2022 18:35:29 +0200 Subject: [PATCH] rebase onto main branch, fixing queries with fetchPolicy = "standby" --- 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 f67bcf05615..81bfce5bad8 100644 --- a/src/react/hooks/useQuery.ts +++ b/src/react/hooks/useQuery.ts @@ -388,6 +388,7 @@ class InternalState { this.renderPromises.registerSSRObservable(obsQuery); const ssrAllowed = !( + this.watchQueryOptions.fetchPolicy === 'standby' || this.queryHookOptions.ssr === false || this.queryHookOptions.skip );