Make JS Representation cache all TurboModule properties#36625
Conversation
|
This pull request was exported from Phabricator. Differential Revision: D44253229 |
Base commit: 4e0dfed |
|
This pull request was exported from Phabricator. Differential Revision: D44253229 |
84f0cd1 to
1deeb37
Compare
|
This pull request was exported from Phabricator. Differential Revision: D44253229 |
1deeb37 to
f3d1b7f
Compare
|
This pull request was exported from Phabricator. Differential Revision: D44253229 |
f3d1b7f to
19cc0e7
Compare
|
This pull request was exported from Phabricator. Differential Revision: D44253229 |
19cc0e7 to
5e5ff39
Compare
|
This pull request was exported from Phabricator. Differential Revision: D44253229 |
5e5ff39 to
b874929
Compare
|
This pull request was exported from Phabricator. Differential Revision: D44253229 |
b874929 to
2fcfae8
Compare
|
This pull request was exported from Phabricator. Differential Revision: D44253229 |
2fcfae8 to
150bc40
Compare
|
This pull request was exported from Phabricator. Differential Revision: D44253229 |
833d9ee to
1b13a08
Compare
|
This pull request was exported from Phabricator. Differential Revision: D44253229 |
1b13a08 to
06169fc
Compare
|
This pull request was exported from Phabricator. Differential Revision: D44253229 |
|
This pull request was exported from Phabricator. Differential Revision: D44253229 |
06169fc to
0caa6e7
Compare
Summary: In Bridgeless mode, With the TurboModule interop layer, the TurboModule system will need to customize the nativeModuleProxy global. This customization would be much easier if the nativeModuleProxy global were installed by the TurboModule system (and not the Bridgeless core). So, this diff moves nativeModuleProxy installation into the TurboModule system. Changelog: [Internal] Differential Revision: https://internalfb.com/D43993197 fbshipit-source-id: fdc508b58deaa36597536584eab838a36c583734
Summary: Pull Request resolved: facebook#36625 ## Context Previously, jsRepresentation would only cache the **HostFunctions** returned from TurboModule::createHostFunction(). ## Changes This diff replaces TurboModule::createHostFunction() with TurboModule::create(). Now, jsRepresentation will cache **all** the **properties** returned from TurboModule::create(). ## Motivation For interop modules, constants will be exported as properties on the TurboModule HostObject. This diff allows those constants (which are non HostFunctions) to be cached. Changelog: [Internal] Reviewed By: javache Differential Revision: D44253229 fbshipit-source-id: 13b39f80fb0c3a21307e1456f347f155ac52119d
|
This pull request was exported from Phabricator. Differential Revision: D44253229 |
0caa6e7 to
a9b0698
Compare
|
This pull request has been merged in 51893c4. |
Summary:
Context
Previously, jsRepresentation would only cache the HostFunctions returned from TurboModule::createHostFunction().
Changes
This diff replaces TurboModule::createHostFunction() with TurboModule::create().
Now, jsRepresentation will cache all the properties returned from TurboModule::create().
Motivation
For interop modules, constants will be exported as properties on the TurboModule HostObject. This diff allows those constants (which are non HostFunctions) to be cached.
Changelog: [Internal]
Reviewed By: javache
Differential Revision: D44253229