"Can I run an effect only on updates?"
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 11.8k
- Fork
- 7.9k
- Merge medio
- 1g 11h
- PR unite (30g)
- 11
Descrizione
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 :)
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia dal paragrafo delle FAQ intitolato “Can I run an effect only on updates?” e confrontalo con la documentazione degli hooks. Decidi se il paragrafo debba essere spostato o includere termini di ricerca come componentDidMount e “avoid initial mount”; il lavoro è completato quando il miglioramento della documentazione scelto è chiaramente riflesso.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, react
- Ambito
- documentation
- Tipo di issue
- Documentazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100