Autodesk / Autodesk/react-base-table

The prop value in the dataGetter function cannot be obtained with the latest

Offen
#434 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
1.5k
Forks
170
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I'm providing a value via props from a parent component to a child component that contains my BaseTable. The value that is passed down is successfully rendered in one of the columns via the cellRenderer.

The issue is that whenever the value is updated in the parent component, the value that is passed to my table via props is not forcing the Column to rerender. I have confirmed the child component is successfully receiving the updated value through rendering the value in a h1 tag outside of my BaseTable.

How can I get the updated value to render inside of the Column of the BaseTable?

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, die Aktualisierung eines Props vom Parent zum Child mit BaseTable, Column, dataGetter und cellRenderer zu reproduzieren; das Issue enthält keine Repository-Datei und keinen Test, mit denen begonnen werden kann. Als erledigt gilt die Aufgabe, wenn ein aktualisierter Prop-Wert in der Column gerendert wird, nachdem der Parent ihn geändert hat.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
react, typescript
Bereich
frontend
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.