I am using pagination of swrInfinite. Using url
`https://api.rarible.org/v0.1/items/byCollection?collection=${id}&size=${results}&continuation=${cont}`
full results handling page link. I just want to send request again with change the results value from 10 to 20.
my fetcher
const fetcher = (data: any) => axios.get(data).then((res) => res.data);
My swrInfinite function.
const { data, error, size, setSize }: any = useSWRInfinite((index, prev) => {
if (prev && prev?.[0]?.items?.length) return null;
const cont: any = prev?.continuation ?? '';
console.log('useSWRInfinite ~ cont', cont);
return `https://api.rarible.org/v0.1/items/byCollection?collection=${id}&size=${results}&continuation=${cont}`;
}, fetcher);
I am facing the issue for last 2 days .There is any issue when sending request again .Again my data is fetching but not in the paginated way