Incorrect pagination behavior with autoResetPageIndex set to true when deleting rows
Los mantenedores suelen responder en 1 día
@cipherprofessor ya está trabajando en esto.
Desde el 23/9/2026.
- #6600 de @cipherprofessor — abierto
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- react, typescript
- Área
- frontend
Línea de trabajo
Comienza creando el ejemplo mínimo reproducible prometido usando paginación, una columna de visualización para eliminar y autoResetPageIndex establecido en false. Rastrea cómo responde el estado de paginación al eliminar la última fila de la última página y, después, verifica que pageIndex permanezca dentro del número de páginas actualizado y que las pruebas de paginación relevantes pasen.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
Currently working on a table with pagination and a display column that removes the current row.
- The data for the table is stored in react state and passed into the data prop.
- The display column performs a removal by filtering the current row out of the state.
Accordingly, autoResetPageIndex needs to be set to false to prevent the pageIndex state from resetting on every row delete.
Everything works well until all of the rows are deleted on the last page.
The pageIndex state doesnt update, even though the getPageCount response does.
I would assume that even with autoResetPageIndex set to false, the pageIndex state should update when data is deleted and the page count decreases.
Your minimal, reproducible example
will provide on request
Steps to reproduce
Steps To preproduce
- Create a table that:
- uses pagination
- has a display column to remove the current row
- has autoResetPageIndex set to false
- has enough data to populate more than one page
- navigate to the last page
- remove all of the rows by clicking the delete buttons one by one
Expected behavior
Expected:
When the last row is removed the table state should decrease the pageIndex state to match the page count
Actual:
pageIndex is unchanged and there is no data shown since the pageIndex is out of range relative to the new number of pages
How often does this bug happen?
None
Screenshots or Videos
No response
Platform
issue happens on any OS with any browser
react-table version
8.5.15
TypeScript version
No response
Additional context
No response
Terms & Code of Conduct
- I agree to follow this project's Code of Conduct
- 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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 28.5k
- Forks
- 3.6k
- Merge medio
- 19 h 40 min
- PR fusionados (30 d)
- 8
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de TanStack/table
-
Issue template renders `react-table`, not `TanStack/table`Posiblemente ocupada @vishruthasgowda la tomó hace 12 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
TanStack/table#6595 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
TanStack/table#6601 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Cast required to access custom options when defining a custom plugin/featurePosiblemente ocupada @sorena-paydar la tomó hace 13 días. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
`aggregatedCell` not typed against bound `cellComponents` in `createAppColumnHelper`Posiblemente ocupada @cpruijsen la tomó hace 24 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
TanStack/table#6577 · 6 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de TanStack/table
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
AOSSIE-Org/DebateAI#611 ·
Los mantenedores suelen responder en 3 días
-
Upgrade node-libzim to 4.7.0Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
openzim/mwoffliner#2933 ·
Los mantenedores suelen responder en 1 día
-
Use the README category name for website links and submissionsPosiblemente ocupada @dajiaohuang la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
birobirobiro/awesome-shadcn-ui#647 ·
Los mantenedores suelen responder en 2 días
-
Twake Drive picker: closePicker() never destroys the intent (stop() is on the promise returned by start(), not by create())Posiblemente ocupada @chibenwa la tomó hoy. Abiertoclaude
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
linagora/twake-calendar-frontend#1498 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Add: Valea Prahovei TV RO SDAbiertocheck:passed streams:add
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día