A social knowledge tool for researchers built on ATProto

fix: collection query keys

+8 -3
+6 -1
src/webapp/features/collections/lib/collectionKeys.ts
··· 4 4 mine: () => [...collectionKeys.all(), 'mine'] as const, 5 5 search: (query: string) => [...collectionKeys.all(), 'search', query], 6 6 bySembleUrl: (url: string) => [...collectionKeys.all(), url], 7 - infinite: (id?: string) => [...collectionKeys.all(), 'infinite', id], 7 + infinite: (id?: string, limit?: number) => [ 8 + ...collectionKeys.all(), 9 + 'infinite', 10 + id, 11 + limit, 12 + ], 8 13 };
+1 -1
src/webapp/features/collections/lib/queries/useCollection.tsx
··· 12 12 const limit = props.limit ?? 20; 13 13 14 14 return useSuspenseInfiniteQuery({ 15 - queryKey: collectionKeys.infinite(props.rkey), 15 + queryKey: collectionKeys.infinite(props.rkey, props.limit), 16 16 initialPageParam: 1, 17 17 queryFn: ({ pageParam }) => 18 18 getCollectionPageByAtUri({
+1 -1
src/webapp/features/collections/lib/queries/useCollections.tsx
··· 11 11 const limit = props?.limit ?? 15; 12 12 13 13 return useSuspenseInfiniteQuery({ 14 - queryKey: collectionKeys.infinite(props.didOrHandle), 14 + queryKey: collectionKeys.infinite(props.didOrHandle, props.limit), 15 15 initialPageParam: 1, 16 16 queryFn: ({ pageParam }) => 17 17 getCollections(props.didOrHandle, {