createDeepCompareEffect
The API createDeepCompareEffect
Overview
- createDeepCompareEffect is a React hook that works similarly to useEffect but performs a deep comparison of its dependencies. This means that the effect will only re-run if the actual content of the dependencies changes, rather than just their references.
## Installation
Open inpnpm dlx shadcn@latest add https://shadcn-ahooks.vercel.app/r/createDeepCompareEffect.jsonnpx shadcn@latest add https://shadcn-ahooks.vercel.app/r/createDeepCompareEffect.jsonyarn shadcn@latest add https://shadcn-ahooks.vercel.app/r/createDeepCompareEffect.jsonbun shadcn@latest add https://shadcn-ahooks.vercel.app/r/createDeepCompareEffect.jsonUsage