Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IMHO when the hook runs for the first time, the component is not mounted already, so the initial value should be false. Only after the (first) execution of useEffect it is mounted and isMounted should change to true. (Makes probably not a big difference in real life, but feels more correct)
- Loading branch information