From a290eff1bbbc188bf2d4c3cdb398b0dfde48277f Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Tue, 20 Jun 2023 21:01:40 +0800 Subject: [PATCH] Remove refetchType all from bucket queries --- studio/data/storage/bucket-create-mutation.ts | 2 +- studio/data/storage/bucket-delete-mutation.ts | 2 +- studio/data/storage/bucket-update-mutation.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/studio/data/storage/bucket-create-mutation.ts b/studio/data/storage/bucket-create-mutation.ts index 593e8ad4833..3a70d4b0d73 100644 --- a/studio/data/storage/bucket-create-mutation.ts +++ b/studio/data/storage/bucket-create-mutation.ts @@ -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, diff --git a/studio/data/storage/bucket-delete-mutation.ts b/studio/data/storage/bucket-delete-mutation.ts index 1f6e053341c..f7b6fa701d0 100644 --- a/studio/data/storage/bucket-delete-mutation.ts +++ b/studio/data/storage/bucket-delete-mutation.ts @@ -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, diff --git a/studio/data/storage/bucket-update-mutation.ts b/studio/data/storage/bucket-update-mutation.ts index 40a748e3c7e..7c14acac315 100644 --- a/studio/data/storage/bucket-update-mutation.ts +++ b/studio/data/storage/bucket-update-mutation.ts @@ -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,