ltd-scarletL
Refine10mo ago
1 reply
ltd-scarlet

this is how i managed to make it work

this is how i managed to make it work

const queryKey = keys().data().resource("employee-group").action("list").params({
        filters: [{
            field: "type",
            operator: "eq",
            value: "LOCATION",
        }],
        hasPagination: true,
        pagination: {
            current: 1,
            pageSize: 10,
            mode: "server",
        },
        sorters: [],
    }).get()



the issue is this wont scale as if i do any change on how the data-table component which uses useTable (from @refinedev/react-table) behaves (like adding pagination) i will have to add hacks for setting the paginaton on the url and so forth
Was this page helpful?