queryOptions
I want to hit an Api with a specific route, for exampe, lets say api/user-directories/ for example to show a root directory. how can I use queryOptions on a table to be able to add those query parameters to the query? I'm totally stuck on this.
const {tableProps, sorter} = useTable<any>({
initialSorter: [
{
field: "id",
order: "desc",
},
],
initialPageSize: 25,
queryOptions: {
queryKey: 'path',
}
});
const {tableProps, sorter} = useTable<any>({
initialSorter: [
{
field: "id",
order: "desc",
},
],
initialPageSize: 25,
queryOptions: {
queryKey: 'path',
}
});
