Skip to content

Conversation

@poteto
Copy link
Member

@poteto poteto commented Oct 29, 2024

@vercel
Copy link

vercel bot commented Oct 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 29, 2024 10:36pm

This was originally reported in reactwg/react-compiler#27.

Adding a failing repro to capture this case.
@poteto poteto merged commit 3928cb0 into main Oct 30, 2024
33 of 34 checks passed
@poteto poteto deleted the pr31383 branch October 30, 2024 01:36
poteto added a commit that referenced this pull request Oct 30, 2024
…#31384)

When resolving import specifiers from the react namespace (`import
{imported as local} from 'react'`), we were previously only checking if
the `imported` identifier was a hook if we didn't already have its
definition in the global registry. We also need to check if `local` is a
hook in the case of aliasing since there may be hook-like APIs in react
that don't start with `use` (eg they are experimental or unstable).

---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/31384).
* #31385
* __->__ #31384
* #31383
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants