Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Remove refetchType all from bucket queries

Joshen Lima290eff1bbbc
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,