Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

HeaderContext and CellContext types should use ReactTable

Aperta
#6,230 1 commento 7 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

  • #6240 di @cyphercodes — chiusa senza merge

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
react, typescript
Ambito
frontend

Direzione di ricerca

Inizia dalle definizioni dei tipi CellContext e HeaderContext utilizzate dalle definizioni delle colonne e confronta la loro prop table con i tipi ReactTable e Table. Riproduci la discrepanza nel CodeSandbox collegato, quindi verifica che i callback di cella e intestazione espongano funzionalità di ReactTable come table.Subscribe senza errori di tipo.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

TanStack Table version

9.0.0-alpha.32

Framework/Library version

[email protected]

Describe the bug and the steps to reproduce it

When defining cell or header in the column definitions, the type of the props provided, CellContext and HeaderContext respectively, is inaccurate. The type of the table prop should be ReactTable instead of Table. Without, a cell cannot use table.Subscribe that became available in the alpha 9.

In the example, you can see in the logs that the table provided as prop does actually have the properties.

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

https://codesandbox.io/p/sandbox/yq2lwx

Screenshots or Videos (Optional)

No response

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

No, because I do not have time to dig into it

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.
Lingua principale
TypeScript
Stelle
28.5k
Fork
3.6k
Merge medio
17h 39m
PR unite (30g)
10

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di TanStack/table

Tutte le issue di TanStack/table

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.