Add post-select hook
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 3.1k
- Forks
- 455
- Ø Merge
- 5 Std. 9 Min.
- Gemergte PRs (30 T.)
- 2
Beschreibung
Although react-tabs has onSelect, which is called when the tab is about to change, I see no post-update hook.
My requirements for this are that, I have to do some post-processing on the rendered DOM. On the parent component that I use react-tabs in, I do the post processing of parent component in its componentDidUpdate method but obviously the updates on the child (react-tabs in this case) doesn't trigger the post-update method of the parent.
It would be useful for me if there was a post-update hook on react-tabs.
Note: I can fix this by using the controlled-mode. Therefore feel free to close the issue if this looks like an unsuitable feature request.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, den vorhandenen onSelect-Callback mit dem Verhalten im controlled-mode und dem Timing von Reacts componentDidUpdate zu vergleichen. Bestimme den vorgesehenen Vertrag für den post-update-Hook und wie er sich bei Tabwechseln verhalten soll. Fertig ist die Aufgabe, wenn der Umfang des Features abgestimmt ist und das Verhalten des Callbacks durch Tests und Dokumentation abgedeckt ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, react
- Bereich
- frontend
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 25/100