diff --git a/client/src/gql/queries/authorization.tsx b/client/src/gql/queries/authorization.tsx index 31293ee..52ecc65 100644 --- a/client/src/gql/queries/authorization.tsx +++ b/client/src/gql/queries/authorization.tsx @@ -8,10 +8,16 @@ export const QUERY_IS_AUTHORIZED = gql` `; export function useIsAuthorizedQuery>(options: QueryHookOptions = {}) { + options = Object.assign({ + fetchPolicy: 'cache-and-network' + }, options); return useQuery(QUERY_IS_AUTHORIZED, options); } export function useIsAuthorized>(options: QueryHookOptions = {}, defaultValue = false) { + options = Object.assign({ + fetchPolicy: 'cache-and-network' + }, options); const { data, loading, error } = useGraphQLData( QUERY_IS_AUTHORIZED, 'isAuthorized', defaultValue, options );