"Can I run an effect only on updates?"
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 11.8k
- Forks
- 7.9k
- Ø Merge
- 1 T. 11 Std.
- Gemergte PRs (30 T.)
- 11
Beschreibung
Hi React Team :)
After reading a first time the hooks documentation, I didn't find how to skip the first useEffect call at the initial mount. Fortunately Dan directed me to the paragraph "Can I run an effect only on updates?" from FAQ. :)
Maybe I was the first to feel a little bit confused with that. So I propose to either :
- This paragraph shouldn't be in the FAQ, because the documentation it's dense (that's a good thing, thanks for the job) and you'll probably not going to the FAQ after reading a first time.
(or) - This paragraph can stay in the FAQ, but we should add term like
componentDidMount, "avoid intial mount" to make search easier.
If the idea sounds good for you guys. I can suggest you a alternative text :)
Thank you again for your job :)
Beitragsleitfaden
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
Beginnen Sie mit dem FAQ-Absatz mit dem Titel “Can I run an effect only on updates?” und vergleichen Sie ihn mit der Hooks-Dokumentation. Entscheiden Sie, ob der Absatz verschoben werden oder Suchbegriffe wie componentDidMount und “avoid initial mount” erhalten sollte; abgeschlossen ist die Aufgabe, wenn die gewählte Dokumentationsverbesserung klar widergespiegelt wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, react
- Bereich
- documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100