Skip to main content
GoodFirstPicks
DashboardIssuesReposLeaderboard

GoodFirstPicks by Leaveitblank © 2026

CreatorRequest a RepoPrivacy PolicyTerms of Service
Bug: eslint-plugin-react-hooks not throwing "Hooks may not be referenced as normal values" error | GoodFirstPicks

Bug: eslint-plugin-react-hooks not throwing "Hooks may not be referenced as normal values" error

facebook/react 2 comments 1mo ago
View on GitHub
mediumopenScope: somewhat clearSkill match: maybeReactJavaScriptTypeScript

Why this is a good first issue

Issue involves ESLint configuration and React Hooks rules, but reproduction is inconsistent.

AI Summary

The issue reports that eslint-plugin-react-hooks is not throwing a specific error related to hooks being referenced as normal values, despite following the migration steps from the React Compiler announcement. The problem appears to be inconsistent across environments, making it unclear whether it's a bug or a configuration issue. Further investigation is needed to determine the root cause.

Issue Description

React version: 19.2.

Steps To Reproduce

  1. The expected behavior screenshot shows when my repo had eslint-plugin-react-compiler@beta and [email protected] installed. Per the React Compiler v1.0 announcement, I removed eslint-plugin-react-compiler, bumped eslint-plugin-react-hooks to the latest version (7.0.1), and made the eslint config changes accordingly. All other rules, including the new ones, seem to work as expected, except this one seems to have disappeared (I only noticed because our codebase has many instances of this that we've been planning to fix at some point before enabling the compiler). Is this a bug or is this no longer meant to throw a lint error, since it does explicitly break the rules of React ?

The current behavior

Image

The expected behavior

Image

GitHub Labels

Status: Unconfirmed

Want to work on this?

Claim this issue to let others know you're working on it. You'll earn 10 points when you complete it!

Risk Flags

  • reproduction unclear
  • potential configuration issue
Loading labels...

Details

Points10 pts
Difficultymedium
Scopesomewhat clear
Skill Matchmaybe
Test Focusedno