1️⃣
In useEffects hooks you can watch for a nested attribute of a prop to only call the hook, when the nested attribute changes.
Using this feature triggers consistent-destructuring rule
2️⃣
consistent-destructuring
3️⃣
// imagine this is coming as prop
const user = { name: 'John', age: 30 }
useEffect(() => {
console.log(user.age)
}, [user.age])
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too