Skip to content

Commit

Permalink
infinite staletime
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzius committed May 18, 2024
1 parent efdc534 commit b61603a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/state/queries/messages/get-convo-for-members.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query'
import {logger} from '#/logger'
import {DM_SERVICE_HEADERS} from '#/state/queries/messages/const'
import {useAgent} from '#/state/session'
import {STALE} from '..'
import {RQKEY as CONVO_KEY} from './conversation'

const RQKEY_ROOT = 'convo-for-user'
Expand Down Expand Up @@ -61,5 +62,6 @@ export function useMaybeConvoForUser(did: string) {
return null
}
},
staleTime: STALE.INFINITY,
})
}

0 comments on commit b61603a

Please sign in to comment.