-
Notifications
You must be signed in to change notification settings - Fork 47.4k
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
[compiler] Support default imports for autodep config #31657
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
793dd50
to
3ddbd8e
Compare
} else { | ||
t6 = $[13]; | ||
} | ||
useEffectWrapper(t6, [foo]); |
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.
Nice 👍
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.
Makes sense!
) { | ||
const moduleTargets = autodepFnConfigs.get(value.binding.module); | ||
if (moduleTargets != null) { | ||
const numRequiredArgs = moduleTargets.get('default'); |
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.
Does it make sense to make default
a constant in Environment.ts
for grep-ability?
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.
yea, sounds reasonable to me! I like grep-ability + find-refs-ability
## Summary Drops .current field accesses in inferred dep arrays
## Summary Allows us to add deps for things like `import useWrapperEffect from 'useWrapperEffect'`
## Summary Drops .current field accesses in inferred dep arrays --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/31652). * #31657 * __->__ #31652
Summary
Allows us to add deps for things like
import useWrapperEffect from 'useWrapperEffect'
Stack created with Sapling. Best reviewed with ReviewStack.