[FEAT] useTable
's state names current
and setCurrent
are confusing.
#6087
Labels
useTable
's state names current
and setCurrent
are confusing.
#6087
Is your feature request related to a problem? Please describe.
The return values of useTable related to pagination are as follows:
The purpose of
current
andsetCurrent
is to change the page, but it is unclear whatcurrent
refers to.Describe alternatives you've considered
No response
Additional context
No response
Describe the thing to improve
current
andsetCurrent
should be deprecated.useTable
should returnpage
andsetPage
, serving the same purpose.pagination.page
should be added touseTable
props, and ifpagination.page
is provided, it should overridepagination.current
.current
andpage
should be sent todataProvider
to prevent breaking changes.syncWithLocation
should work with both fields without breaking changes.useParsed
should work with both fields without breaking changes.The text was updated successfully, but these errors were encountered: