Remove staleTime
This commit is contained in:
@@ -13,8 +13,6 @@ export function useFetchHandle() {
|
|||||||
async (handleOrDid: string) => {
|
async (handleOrDid: string) => {
|
||||||
if (handleOrDid.startsWith('did:')) {
|
if (handleOrDid.startsWith('did:')) {
|
||||||
const res = await queryClient.fetchQuery({
|
const res = await queryClient.fetchQuery({
|
||||||
// cache in memory forever, page reload clears
|
|
||||||
staleTime: Infinity,
|
|
||||||
queryKey: fetchHandleQueryKey(handleOrDid),
|
queryKey: fetchHandleQueryKey(handleOrDid),
|
||||||
queryFn: () => agent.getProfile({actor: handleOrDid}),
|
queryFn: () => agent.getProfile({actor: handleOrDid}),
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user