Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Manual Pagination doesnt reset PageIndex when Manual Column Filtering. (server-side, v8)

Abierto
#4,797 4 comentarios 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
react, typescript
Área
frontend

Línea de trabajo

Ejecuta la reproducción vinculada de CodeSandbox con react-table v8.8.5, empezando por el comportamiento de manualPagination y manualFiltering al filtrar desde la página 1000. Se considera terminado cuando cambiar el filtro de estado restablece pageIndex a 0 y la solicitud resultante del servidor muestra los datos filtrados en la página 1.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Describe the bug

We have recently moved to use v8 of react-table and have noticed a bug where the pageIndex doesn't reset when we are using manualPagination and manualFiltering. This is when we are making server-side calls to get our data with the information.

In v7 it was the case that we would have our pageIndex reset to 0 when we make a filter change when we had both manualPagination && manualFiltering.

This resulted in the correct Query being made, however with the regression in behaviour in v8 we are seeing incorrect requests.

Your minimal, reproducible example

https://codesandbox.io/p/sandbox/festive-hertz-chekxf

Steps to reproduce
  1. go to page 1000
  2. filter on status complicated
  3. you'll see page 1000/331 - with no data
Expected behavior

As a User when i am on a page I should be reset back to the first page when i filter and expect to see the the contents of the filter on page 1/331

How often does this bug happen?

Every time

Screenshots or Videos

Screenshot 2023-04-05 at 09 34 54
Screenshot 2023-04-05 at 09 35 05

Platform
  • MacOS 13.2.1
  • Chrome 111.0.5563.146
react-table version

V8.8.5

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
1 d 14 h
PR fusionados (30 d)
4

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de TanStack/table

Todos los issues de TanStack/table

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.