fix: ssr for /

This commit is contained in:
Vyacheslav Matyukhin 2022-04-21 00:01:12 +04:00
parent 297eadc59b
commit f4bb0d19eb
No known key found for this signature in database
GPG Key ID: 3D2A774C5489F96C

View File

@ -69,6 +69,8 @@ const CommonDisplay: React.FC<Props> = ({
},
},
pause: !isFirstRender,
// note that if we don't force cache-only on SSR then queryResults.fetching is true which leads to an empty page
requestPolicy: isFirstRender ? "cache-only" : "network-only",
});
const queryIsEmpty =