Skip to content
Snippets Groups Projects
Commit f5f2eb06 authored by Sathya Gunsasekaran's avatar Sathya Gunsasekaran
Browse files

[compiler] Add context callee import if required

Previously the compiler would add an import for the specified context
callee even if the context access was not lowered, leading to unused
imports.

This PR tracks if lowering has happened and adds the import only when
necessary.

ghstack-source-id: 6ad794da41116e1034783b6c4a58fbfe7790343e
Pull Request resolved: https://github.com/facebook/react/pull/30628
parent 1c3d9366
Showing
with 14 additions and 7 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment