fix: query key caching for threads

This commit is contained in:
CREDO23 2026-01-08 19:11:26 +02:00
parent 16c94d1c47
commit d689a8728a

View file

@ -407,7 +407,7 @@ export function OnboardingTour() {
// Fetch threads data
const { data: threadsData } = useQuery({
queryKey: ["threads", searchSpaceId],
queryKey: ["threads", searchSpaceId, { limit: 1 }],
queryFn: () => fetchThreads(Number(searchSpaceId), 1), // Only need to check if any exist
enabled: !!searchSpaceId,
});