---
title: "Comment by Mitja Potočin on \"Having objects as dependencies in React useEffect hook\" | Hashnode"
description: "I think there is a mistake in this article. “ If count’s value is same, the callback effect function ( first argument of useEffect hook ) is called” If the valu"
url: "https://hashnode.com/posts/having-objects-as-dependencies-in-react-useeffect-hook/62fd05ae0cfd6de8c7d785cf/comment/63023c6b428d2725de1a8d34"
---

[Discussion](https://hashnode.com/posts/having-objects-as-dependencies-in-react-useeffect-hook/62fd05ae0cfd6de8c7d785cf)

Comment [Having objects as dependencies in React useEffect hook](https://hashnode.com/posts/having-objects-as-dependencies-in-react-useeffect-hook/62fd05ae0cfd6de8c7d785cf)

[Mitja Potočin](https://hashnode.com/@PanchoSansa)

[Aug 21, 2022](https://hashnode.com/posts/having-objects-as-dependencies-in-react-useeffect-hook/62fd05ae0cfd6de8c7d785cf/comment/63023c6b428d2725de1a8d34)

I think there is a mistake in this article.

“ If count’s value is same, the callback effect function ( first argument of useEffect hook ) is called”

If the valu is the same, the useEffect callback will not be run and vice versa.

[Abass Oguntade](https://hashnode.com/@haybeecodes)

[Aug 24, 2022](https://hashnode.com/posts/having-objects-as-dependencies-in-react-useeffect-hook/62fd05ae0cfd6de8c7d785cf/comment/63023c6b428d2725de1a8d34#reply-63067f9679f56556d0cb862f)

Thanks for pointing that out! Fixed already.
