Closed gaearon closed 4 days ago
cc @robhogan
also cc @poteto fyi
@robhogan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
Thanks Dan!
@robhogan merged this pull request in facebook/metro@b371180b0f1b61368e4e85461e929c4548140a7c.
Summary
Similar to https://github.com/facebook/metro/pull/1126. This call is in every component on every render and it is not beneficial to inline it. On the contrary, you want to reduce the indirection there.
Changelog: [Performance] Exclude React Compiler runtime from inline requires
Changelog:
Test plan
Before:
After: