Unable to access Map entries with array keys by value in getFacetedUniqueValues function

オープン
#5,405 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@okxint がすでに取り組んでいます。

2026年10月13日 から。

  • #6559 @ErfanBagheri404 による — マージされずにクローズ
  • #6634 @okxint による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
nextjs, react, typescript
領域
frontend

調査の方向性

リンクされた StackBlitz の再現例、特に src/main.tsx から始め、列の値が配列の場合に getFacetedUniqueValues がどのように使われているかを調べてください。検索を再現し、表示されるステータスとラベルを比較してください。配列値のファセットに値でアクセスでき、ラベルが正しくレンダリングされれば完了です。

索引モデルが issue の本文から書いたものです。

説明

TanStack Table version

8.12.0

Framework/Library version

NextJS v14.0.4

Describe the bug and the steps to reproduce it

I've encountered an issue when using the getFacetedUniqueValues function to retrieve the faceted unique values for a column in a table. The problem arises when the column value is an array and I attempt to access the corresponding facet using the array value as the key.

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

https://stackblitz.com/edit/tanstack-table-stfatx?file=src%2Fmain.tsx

Screenshots or Videos (Optional)

Status: Shows the number of entries for each option
CleanShot 2024-03-13 at 00 33 21@2x

Labels: Nothing due to it being an array
CleanShot 2024-03-13 at 00 34 56@2x

Do you intend to try to help solve this bug with your own PR?

None

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.6k
フォーク
3.6k
平均マージ
5時間 55分
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TanStack/table のほかの issue

TanStack/table の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。