Tempfix profile load
This commit is contained in:
@@ -22,6 +22,7 @@ export const RQKEY = (did: string) => ['profile', did]
|
|||||||
export function useProfileQuery({did}: {did: string | undefined}) {
|
export function useProfileQuery({did}: {did: string | undefined}) {
|
||||||
const {agent} = useSession()
|
const {agent} = useSession()
|
||||||
return useQuery({
|
return useQuery({
|
||||||
|
staleTime: 1000 * 60,
|
||||||
queryKey: RQKEY(did || ''),
|
queryKey: RQKEY(did || ''),
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const res = await agent.getProfile({actor: did || ''})
|
const res = await agent.getProfile({actor: did || ''})
|
||||||
|
|||||||
Reference in New Issue
Block a user