Skip to content

[pull] main from facebook:main#168

Merged
pull[bot] merged 3 commits into
LoadsAForks:mainfrom
react:main
Aug 18, 2025
Merged

[pull] main from facebook:main#168
pull[bot] merged 3 commits into
LoadsAForks:mainfrom
react:main

Conversation

@pull

@pull pull Bot commented Aug 18, 2025

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.3)

Can you help keep this open source service alive? 💖 Please sponsor : )

eps1lon and others added 3 commits August 18, 2025 10:15
…ddition to useEffect (#34076)

## Summary

This is a fix for #34074

## How did you test this change?

I added tests in the eslint package, and ran `yarn jest`. After adding
the new tests, I have this:

On main | On this branch
-|-
<img width="356" height="88" alt="image"
src="https://github.com/user-attachments/assets/4ae099a1-0156-4032-b2ca-635ebadcaa3f"
/> | <img width="435" height="120" alt="image"
src="https://github.com/user-attachments/assets/b06c04b8-6cec-43de-befa-a8b4dd20500e"
/>

## Changes

- Add tests to check that we are checking both `CallExpression`
(`useEffect(`), and `MemberExpression` (`React.useEffect(`). To do that,
I copied the `getNodeWithoutReactNamespace(` fn from `ExhaustiveDeps.ts`
to `RulesOfHooks.ts`
@pull pull Bot locked and limited conversation to collaborators Aug 18, 2025
@pull pull Bot added the ⤵️ pull label Aug 18, 2025
@pull
pull Bot merged commit 87a45ae into LoadsAForks:main Aug 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants