Revise cache times (#1942)

(cherry picked from commit 1be2060a2b81741dcf9a392160af87d2747b3497)
This commit is contained in:
Eric Bailey 2023-11-16 17:43:53 -06:00 committed by GitHub
parent 1952705ded
commit 6f57192bd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 14 additions and 14 deletions

View file

@ -11,7 +11,7 @@ export const RQKEY = (filter: MyListsFilter) => ['my-lists', filter]
export function useMyListsQuery(filter: MyListsFilter) {
const {agent, currentAccount} = useSession()
return useQuery<AppBskyGraphDefs.ListView[]>({
staleTime: STALE.INFINITY,
staleTime: STALE.MINUTES.ONE,
queryKey: RQKEY(filter),
async queryFn() {
let lists: AppBskyGraphDefs.ListView[] = []