---
title: "Discussion on \"React Hook useEffect Has a Missing Dependency: Every Fix\" | Hashnode"
description: "Discussion on \"React Hook useEffect Has a Missing Dependency: Every Fix\". The warning looks like this, and if you work in React or Next.js you have seen it many times:\nReact Hook useEffect has a missing dependency: 'userId'. Either include it or remove the dependency array"
url: "https://hashnode.com/posts/react-hook-useeffect-has-a-missing-dependency-every-fix/6affd56b48763acd0e84720a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [React Hook useEffect Has a Missing Dependency: Every Fix](https://knowledgemarkg.hashnode.dev/react-hook-useeffect-has-a-missing-dependency-every-fix?utm_source=hashnode&utm_medium=feed)

The warning looks like this, and if you work in React or Next.js you have seen it many times: React Hook useEffect has a missing dependency: 'userId'. Either include it or remove the dependency array

3d ago · 11 min read · knowledgemarkg.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Kausar Raza](https://hashnode.com/@knowledgemarkg)

@knowledgemarkg

  
[View profile](https://hashnode.com/@knowledgemarkg)

Freelance web developer: Next JS, ASP NET Core, site speed and technical SEO. Real errors, real fixes.

Freelance web developer building fast, search-friendly websites for small businesses in the UK, US and Europe. I work with Next JS, React and ASP NET Core, and write about the real problems I hit: Core Web Vitals, caching, IndexNow, technical SEO. Original posts and free tools at knowledgemarkg.com

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
