Remove refetchType all from bucket queries

This commit is contained in:
Joshen Lim committed 2023-06-20 21:01:40 +08:00
1 parent 5a1194aa91
commit a290eff1bb
3 files changed
+3 -3

No files matched your search

@@ -47,7 +47,7 @@ export const useBucketCreateMutation = ({
{
async onSuccess(data, variables, context) {
const { projectRef } = variables
await queryClient.invalidateQueries(storageKeys.buckets(projectRef), { refetchType: 'all' })
await queryClient.invalidateQueries(storageKeys.buckets(projectRef))
await onSuccess?.(data, variables, context)
},
...options,
@@ -36,7 +36,7 @@ export const useBucketDeleteMutation = ({
{
async onSuccess(data, variables, context) {
const { projectRef } = variables
await queryClient.invalidateQueries(storageKeys.buckets(projectRef), { refetchType: 'all' })
await queryClient.invalidateQueries(storageKeys.buckets(projectRef))
await onSuccess?.(data, variables, context)
},
...options,
@@ -46,7 +46,7 @@ export const useBucketUpdateMutation = ({
{
async onSuccess(data, variables, context) {
const { projectRef } = variables
await queryClient.invalidateQueries(storageKeys.buckets(projectRef), { refetchType: 'all' })
await queryClient.invalidateQueries(storageKeys.buckets(projectRef))
await onSuccess?.(data, variables, context)
},
...options,