mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 01:45:10 +03:00
Remove refetchType all from bucket queries
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user