is it possible to paginate the useMany hook?
I'm using the useMany hook in order to fetch relational data from multiple Airtable tables. It is really slow, is there any way to optimize this?
useMany hook or optimizing its performance. useMany hook is used to fetch multiple records in a single request by providing the id's of the related records. This is particularly useful when you need to fetch related data for multiple records. It fetches data from a resource and returns an array of records. useMany hook:useMany hook fetches the full category records for each blog post by passing the resource and ids to the dataProvider's getMany function. The dataProvider then makes a single request to the API to fetch the full records for each category related to the blog posts. The resulting data variable is an array of category records.useMany documentation (https://refine.dev/docs/core/hooks/data/use-many/).useManyuseManyuseManyuseManyuseManygetManyimport { useMany } from "@refinedev/core";
const { data } = useMany({
resource: "categories",
ids: blogPosts.map((blogPost) => blogPost.category.id),
});