-
Notifications
You must be signed in to change notification settings - Fork 47k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync from oss-experimental, not oss-stable #26401
Conversation
Comparing: 47cf4e5...58ef82f Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
@@ -1856,7 +1856,7 @@ function isAncestorNodeOf(a, b) { | |||
|
|||
function isUseEffectEventIdentifier(node) { | |||
if (__EXPERIMENTAL__) { | |||
return node.type === 'Identifier' && node.name === 'useEffectEvent'; | |||
return node.type === 'Identifier' && (node.name === 'useEffectEvent' || node.name === 'experimental_useEffectEvent') ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this makes sense. It wouldn't be caught by Rules of Hooks etc anyway. I think what we'd want to do is re-export it internally without the prefix when trying it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you can get the CI green, sounds fine, but I think we need to revert the suffix change. We'll instead re-export it under a use*
name or we'll alias it at the import site.
Overview
To test useEffectEvent, we need the experimental build of the lint plugin.