mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-17 18:35:19 +02:00
fix: query key caching for threads
This commit is contained in:
parent
16c94d1c47
commit
d689a8728a
1 changed files with 1 additions and 1 deletions
|
|
@ -407,7 +407,7 @@ export function OnboardingTour() {
|
||||||
|
|
||||||
// Fetch threads data
|
// Fetch threads data
|
||||||
const { data: threadsData } = useQuery({
|
const { data: threadsData } = useQuery({
|
||||||
queryKey: ["threads", searchSpaceId],
|
queryKey: ["threads", searchSpaceId, { limit: 1 }],
|
||||||
queryFn: () => fetchThreads(Number(searchSpaceId), 1), // Only need to check if any exist
|
queryFn: () => fetchThreads(Number(searchSpaceId), 1), // Only need to check if any exist
|
||||||
enabled: !!searchSpaceId,
|
enabled: !!searchSpaceId,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue