genuine-moccasinG
Refine3y ago
3 replies
genuine-moccasin

I am using @refinedev/core useList

export const ProfileList: React.FC = () => {
    const { data } = useList<IProfile, HttpError, IProfile>({
        resource: `profiles`,
        meta: {
            fields: ["id", "firstName", "lastName"],
            populate: "*",
        },
    });

const profiles= data?.data ?? [];
console.log('profiles: ', profiles)


Strapi V4 is my dataprovider

My console.log is returning 10 items when my backend shows 12 items. I can't find anything wrong with my query it should be populating all 12 items. What am I doing wrong?

If I go to my edit page and chane the url to the ID of 1 of the missing items it will load it no issues. but in my list page it just does not load more than 10 items. If i change the pagnation to 5, it still loads 10 items but lets me tab between the 2 pages of results.

I confirmed in strapi my api rest defaultLimit is 25.

I have a query for a select in the create page that pulls the same stuff and it loads all my items so it has to be something with the list I just can't find it.
Was this page helpful?