use-did-update
Calls given function in useEffect when value changes, but not when the component mounts
Source
Docs
PackageIcon
Usage
The use-did-update hook works the same way as useEffect but it is not called when the component is mounted:
Calls given function in useEffect when value changes, but not when the component mounts
Source
Docs
PackageIcon
The use-did-update hook works the same way as useEffect but it is not called when the component is mounted: