mirror of
https://github.com/block/buzz.git
synced 2026-10-27 04:30:52 +00:00
fix(desktop): refetch threads when reopened
Co-authored-by: Wren <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@buzz.block.builderlab.xyz> Signed-off-by: Wren <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@buzz.block.builderlab.xyz>
This commit is contained in:
@@ -62,7 +62,7 @@ export function useThreadReplies(
|
||||
if (!activeChannel || !openThreadRootId) return [];
|
||||
return loadThreadReplies(queryClient, activeChannel.id, openThreadRootId);
|
||||
},
|
||||
staleTime: 30_000,
|
||||
staleTime: 0,
|
||||
gcTime: 60 * 60 * 1_000,
|
||||
});
|
||||
}
|
||||
@@ -84,7 +84,7 @@ export function useThreadRepliesForRoots(
|
||||
queryKey: threadRepliesKey(channelId, rootId),
|
||||
enabled: activeChannel !== null && activeChannel.channelType !== "forum",
|
||||
queryFn: () => loadThreadReplies(queryClient, channelId, rootId),
|
||||
staleTime: 30_000,
|
||||
staleTime: 0,
|
||||
gcTime: 60 * 60 * 1_000,
|
||||
})),
|
||||
combine: (results) => ({
|
||||
|
||||
Reference in New Issue
Block a user