Fix infinite fetch

This commit is contained in:
Zoe Roux 2023-11-05 10:54:53 +01:00
parent d73a37fbed
commit f0d6402529

View File

@ -71,7 +71,7 @@ export const queryFn = async <Data,>(
.concat(
"path" in context
? (context.path.filter((x) => x) as string[])
: "pageParam" in context
: "pageParam" in context && context.pageParam
? [context.pageParam as string]
: (context.queryKey.filter((x, i) => x && i) as string[]),
)