Completely disable the RQ cache in post-thread (#2133)
parent
cdc1d08267
commit
5b19e2b90b
|
@ -65,6 +65,7 @@ export type ThreadNode =
|
|||
export function usePostThreadQuery(uri: string | undefined) {
|
||||
const queryClient = useQueryClient()
|
||||
return useQuery<ThreadNode, Error>({
|
||||
gcTime: 0,
|
||||
queryKey: RQKEY(uri || ''),
|
||||
async queryFn() {
|
||||
const res = await getAgent().getPostThread({uri: uri!})
|
||||
|
|
Loading…
Reference in New Issue