Updated apollo fetch policies to always be network only.
This commit is contained in:
@@ -44,7 +44,10 @@ const JobsList = (props) => (
|
||||
);
|
||||
|
||||
const JobsFilter = (props) => {
|
||||
const { loading, error, data } = useQuery(QUERY_ALL_SHOPS);
|
||||
const { loading, error, data } = useQuery(QUERY_ALL_SHOPS, {
|
||||
fetchPolicy: "network-only",
|
||||
nextFetchPolicy: "network-only",
|
||||
});
|
||||
if (loading) return <CircularProgress />;
|
||||
if (error) return JSON.stringify(error);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user