Skip to content

Commit

Permalink
changed cacheTime for status type requests #1519
Browse files Browse the repository at this point in the history
  • Loading branch information
kaperoo committed Aug 16, 2023
1 parent e5ee1a6 commit ca2a7bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/datagateway-download/src/downloadApiHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ export const useDownloadTypeStatuses = <TData = DownloadTypeStatus>({
if (error) handleQueryError(type);
},
...queryOptions,
cacheTime: 0,
}));

// I have spent hours on this trying to make the type work,
Expand Down

0 comments on commit ca2a7bf

Please sign in to comment.