[FEAT] custom function convert filters to searchForm data in useTable
and useList
#6620
Labels
enhancement
New feature or request
useTable
and useList
#6620
Is your feature request related to a problem? Please describe.
In
@refinedev/antd
, whensyncWithLocation
is True, useTable and useList will convert the filters value to form values in searchForm, but this conversion is very simple. For example, when filter id=1, it will be converted to id='1', which will cause some problemsOrigin conversion code in
@refinedev/antd
, i think it's possible to provide a custom function convertfilters
tofilterFilterMap
Describe alternatives you've considered
No response
Additional context
No response
Describe the thing to improve
Originally there was a function
onSearch
inuseTable
anduseList
that converts form values to CRUDFilters. I wish to provide a reverse function to convert CRUDFilters to form valuesThe text was updated successfully, but these errors were encountered: