mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 11:25:06 +03:00
bring fixes from https://github.com/supabase/supabase/pull/15504
This commit is contained in:
1 parent
d6bd0dd3a7
commit
7bf03f8da8
2 files changed
+3
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { useQuery, useQueryClient, UseQueryOptions } from '@tanstack/react-query'
|
||||
import { get } from 'lib/common/fetch'
|
||||
import { API_URL, IS_PLATFORM } from 'lib/constants'
|
||||
import { API_URL } from 'lib/constants'
|
||||
import { useCallback } from 'react'
|
||||
import { storageKeys } from './keys'
|
||||
|
||||
@@ -35,7 +35,7 @@ export const useBucketsQuery = <TData = BucketsData>(
|
||||
useQuery<BucketsData, BucketsError, TData>(
|
||||
storageKeys.buckets(projectRef),
|
||||
({ signal }) => getBuckets({ projectRef }, signal),
|
||||
{ enabled: IS_PLATFORM && enabled && typeof projectRef !== 'undefined', ...options }
|
||||
{ enabled: enabled && typeof projectRef !== 'undefined', ...options }
|
||||
)
|
||||
|
||||
export const useBucketsPrefetch = ({ projectRef }: BucketsVariables) => {
|
||||
|
||||
@@ -58,7 +58,7 @@ export const ProfileProvider = ({ children }: PropsWithChildren<{}>) => {
|
||||
},
|
||||
})
|
||||
|
||||
const { isLoading: isLoadingPermissions } = usePermissionsQuery()
|
||||
const { isInitialLoading: isLoadingPermissions } = usePermissionsQuery()
|
||||
|
||||
const value = useMemo(() => {
|
||||
const isLoading = isLoadingProfile || isCreatingProfile || isLoadingPermissions
|
||||
|
||||
Reference in new issue
Block a user