Skip to content

"Can I run an effect only on updates?" #1378

Description

@tony-go

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions