fascinating-indigo
fascinating-indigo5mo ago

this is how i managed to make it work ```const queryKey = keys().data().resource("employee-group").

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()
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
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?