Whenever I've worked with useEffect, sometimes I want certain effects to only run on mount or on update and useEffect runs on all state changes. I know there are ways to run effects only on mount (or update), but I do miss using the componentDidMount and componentDidUpdate lifecycle functions for easier readability.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Whenever I've worked with
useEffect, sometimes I want certain effects to only run on mount or on update anduseEffectruns on all state changes. I know there are ways to run effects only on mount (or update), but I do miss using thecomponentDidMountandcomponentDidUpdatelifecycle functions for easier readability.