Remove staleTime

This commit is contained in:
Eric Bailey
2023-11-14 14:16:24 -06:00
parent 456f2fa2af
commit eb2e901682
-2
View File
@@ -13,8 +13,6 @@ export function useFetchHandle() {
async (handleOrDid: string) => {
if (handleOrDid.startsWith('did:')) {
const res = await queryClient.fetchQuery({
// cache in memory forever, page reload clears
staleTime: Infinity,
queryKey: fetchHandleQueryKey(handleOrDid),
queryFn: () => agent.getProfile({actor: handleOrDid}),
})