From dff6bd7c6542b62f1ba8325d2c0520b1665d412b Mon Sep 17 00:00:00 2001 From: Hailey Date: Thu, 16 May 2024 11:58:45 -0700 Subject: [PATCH] =?UTF-8?q?[=F0=9F=90=B4]=20infinite=20stale=20time=20(#40?= =?UTF-8?q?51)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/state/queries/messages/conversation.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/state/queries/messages/conversation.ts b/src/state/queries/messages/conversation.ts index bd5b746f..baf69223 100644 --- a/src/state/queries/messages/conversation.ts +++ b/src/state/queries/messages/conversation.ts @@ -4,6 +4,7 @@ import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query' import {DM_SERVICE_HEADERS} from '#/state/queries/messages/const' import {useOnMarkAsRead} from '#/state/queries/messages/list-converations' import {useAgent} from '#/state/session' +import {STALE} from 'state/queries' import {RQKEY as LIST_CONVOS_KEY} from './list-converations' const RQKEY_ROOT = 'convo' @@ -22,6 +23,7 @@ export function useConvoQuery(convo: ChatBskyConvoDefs.ConvoView) { return data.convo }, initialData: convo, + staleTime: STALE.INFINITY, }) }