Hey there I m having a hard time working

Hey there! I'm having a hard time working around useTable() or useList(), such that the api I'm using has page & size query parameters that do not match in name as the ones given in a default DataProvider. I would still like to have pagination - what is the intended work around for this case? (Apologies if this has been asked before, I could not find it)
2 Replies
absent-sapphire
absent-sapphire2y ago
Hey @rcope313, we're working on a simpler way to customize the data providers but for now, you can use @pankod/refine-cli's swizzle command to export the @pankod/refine-simple-rest's data provider and customize the getList function. To learn more about the data provider structure here's the docs https://refine.dev/docs/api-reference/core/providers/data-provider/#overview Here's the part that's responsible with the pagination params in the source code of the simple rest data provider https://github.com/refinedev/refine/blob/next/packages/simple-rest/src/provider.ts#L33-L34
harsh-harlequin
harsh-harlequin17mo ago
Thank you!!