Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
Also handle no-cache case
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonmade committed Jun 27, 2019
1 parent 9762591 commit bf591d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-graphql/src/hooks/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function useQuery<
} = options;
const client = useApolloClient(overrideClient);

if (typeof window === 'undefined' && skip) {
if ((typeof window === 'undefined' && skip) || fetchPolicy === 'no-cache') {
return createDefaultResult(client, variables);
}

Expand Down

0 comments on commit bf591d9

Please sign in to comment.