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

[React] Row selection does not reset after upgrading from v7 to v8

Abierto
#4,498 7 comentarios 6 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

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

Línea de trabajo

Comienza con la reproducción vinculada de CodeSandbox y compara el comportamiento documentado de v7 de autoResetSelectedRows con el comportamiento de selección de v8. Confirma qué ocurre después de la acción refresh-data y, a continuación, inspecciona los puntos de entrada row-selection de v8 para determinar si se espera el restablecimiento o una opción de configuración; se considera terminado cuando el comportamiento de selección reproducido coincide con el resultado acordado.

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

Descripción

Describe the bug

Hello,

first, thank you for your awesome job, v8 is by far better than v7, I appreciate all the effort you put on it.
I'm pointing this issue as a Bug because I couldn't find any information on the documentation about it, so if it is not a bug, my apologies.

In v7, there was the option autoResetSelectedRows that (it was set by default to true) resets the selected rows whenever the data changes.
In v8, this option is not there anymore and the default behaviour is exactly the opposite.

I would like to know, first, if that was intended, second, if there are plans to restore the configuration option autoResetSelectedRows and when?

A reproducible repo could be found on your documentation pages: https://2llvty.sse.codesandbox.io

Your minimal, reproducible example

https://2llvty.sse.codesandbox.io

Steps to reproduce

Open https://2llvty.sse.codesandbox.io

Select the first 2 rows (checkbox)

Press on refresh data (button) at the bottom

Result:
Data is refreshed and the rows remain selected, even though data did change.

Expected behavior

After data was refreshed, the selection should have been reset, same as it was in v7.

Or there is an option like autoResetSelectedRows that I could set in order to obtain the same behaviour as in v7.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform
  • Os: [macOS] - Browser: [Chrome, Firefox]
react-table version

"@tanstack/react-table": "^8.5.22",

TypeScript version

v4.7.3

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.4k
Forks
3.6k
Merge medio
1 d 1 h
PR fusionados (30 d)
7

Guía de contribución

Abrir la guía de contribución

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.