function paginationChangeQuery(i:number,n:number){
console.log('call',i,n)
// debugger
data.value=dataAll.slice(i*n,i*n+n)
}
change pageIndex action
<Button
v-for="pageNumber in [1,2,3,4]"
@click="props.table.setPageIndex(pageNumber- 1)"
>
behavior
when setPageIndex, it will call onPaginationChange twice, the log is
call 3 10
call 0 10
first log is within expectations,
second log seems reset the pagination, and cause the manual pagination failed.
try set autoResetPageIndex:false , it will functioning properly
call 3 10
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
holdon
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
None
Terms & Code of Conduct
[X] I agree to follow this project's Code of Conduct
[X] I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
TanStack Table version
v8.17.3
Framework/Library version
Vue v8.17.3
Describe the bug and the steps to reproduce it
codes
behavior
when setPageIndex, it will call onPaginationChange twice, the log is
first log is within expectations, second log seems reset the pagination, and cause the manual pagination failed.
autoResetPageIndex:false
, it will functioning properlyYour Minimal, Reproducible Example - (Sandbox Highly Recommended)
holdon
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
None
Terms & Code of Conduct