Don't call getProfiles if there are no actors (#10196)
This commit is contained in:
@@ -99,6 +99,7 @@ export function useProfilesQuery({
|
|||||||
}) {
|
}) {
|
||||||
const agent = useAgent()
|
const agent = useAgent()
|
||||||
return useQuery({
|
return useQuery({
|
||||||
|
enabled: handles.length > 0,
|
||||||
staleTime: STALE.MINUTES.FIVE,
|
staleTime: STALE.MINUTES.FIVE,
|
||||||
queryKey: profilesQueryKey(handles),
|
queryKey: profilesQueryKey(handles),
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user