"Can I run an effect only on updates?"
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 11.8k
- Forks
- 7.9k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 11
Description
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 :)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the FAQ paragraph titled “Can I run an effect only on updates?” and compare it with the hooks documentation. Decide whether the paragraph should move or gain search terms such as componentDidMount and “avoid initial mount”; done means the chosen documentation improvement is clearly reflected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100