createUpdateEffect
The API createUpdateEffect
Overview
- createUpdateEffect 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/createUpdateEffect.jsonnpx shadcn@latest add https://shadcn-ahooks.vercel.app/r/createUpdateEffect.jsonyarn shadcn@latest add https://shadcn-ahooks.vercel.app/r/createUpdateEffect.jsonbun shadcn@latest add https://shadcn-ahooks.vercel.app/r/createUpdateEffect.jsonUsage