use-is-first-render
Detects if the component is rendered for the first time
Source
Docs
PackageIcon
Usage
The useIsFirstRender hook returns true if the component is being rendered for the first time;
otherwise, it returns false.
Is first render: Yes