[React] Row selection does not reset after upgrading from v7 to v8
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- react, typescript
- 領域
- frontend
調査の方向性
リンクされたCodeSandboxの再現から始め、autoResetSelectedRowsの文書化されたv7の動作とv8の選択動作を比較します。refresh-dataアクションの後に何が起きるかを確認し、その後v8のrow-selectionエントリポイントを調べて、期待されるリセットまたは設定オプションが意図されているかを判断します。再現された選択動作が合意した結果と一致すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- TypeScript
- スター
- 28.5k
- フォーク
- 3.6k
- 平均マージ
- 1日 14時間
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
TanStack/table のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
TanStack/table#6577 · コメント 6 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
resources
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
railmapgen/rmg-palette#2445 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
danielmiessler/LifeOS#2242 ·
メンテナーはふだん 5 日以内に返信
-
good first issue hacktoberfest help wanted translation
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
callstackincubator/appduct#129 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100