3 ms·
I agree, but the problem is that when you refer an object inside a hook, the eslint exhaustive deps will tell you to add that object as a dependency. In that ex
by masylum 5y ago
I agree, but the problem is that when you refer an object inside a hook, the eslint exhaustive deps will tell you to add that object as a dependency. In that example, it's easily solved with destructuring `const teamId = params`, but a lot of developers will blindly follow the eslint complaint.
- clansimus 5y agoIn that example, eslint will tell you to add `params.teamId` as a dependency, not `params`