Avoid retaining TurboModuleManager in AppDelegate#37104
Conversation
|
This pull request was exported from Phabricator. Differential Revision: D45310066 |
|
This pull request was exported from Phabricator. Differential Revision: D45310066 |
85527d2 to
92801c2
Compare
|
This pull request was exported from Phabricator. Differential Revision: D45310066 |
92801c2 to
ef8299d
Compare
ef8299d to
4e25612
Compare
|
This pull request was exported from Phabricator. Differential Revision: D45310066 |
Base commit: 0dcf81b |
4e25612 to
d06bbb0
Compare
|
This pull request was exported from Phabricator. Differential Revision: D45310066 |
1 similar comment
|
This pull request was exported from Phabricator. Differential Revision: D45310066 |
d06bbb0 to
a5860f2
Compare
a5860f2 to
d83a5e4
Compare
|
This pull request was exported from Phabricator. Differential Revision: D45310066 |
d83a5e4 to
c327312
Compare
|
This pull request was exported from Phabricator. Differential Revision: D45310066 |
c327312 to
d794de3
Compare
|
This pull request was exported from Phabricator. Differential Revision: D45310066 |
|
This pull request was exported from Phabricator. Differential Revision: D45310066 |
d794de3 to
a2dd5be
Compare
|
This pull request was exported from Phabricator. Differential Revision: D45310066 |
a2dd5be to
818f01e
Compare
|
This pull request was exported from Phabricator. Differential Revision: D45310066 |
818f01e to
4dc795a
Compare
Summary: Pull Request resolved: facebook#37104 The AppDelegate (and other similar classes) only need to construct the TurboModuleManager for intialization purposes, and should not retain it beyond that. TurboModuleManager retains each of the TurboModule instances and through the new binding mechanism, also JSI pointers, which are invalid beyond the lifetime of the JS context. Changelog: [iOS] Changed AppDelegate template to avoid retaining TurboModuleManager. Reviewed By: sammy-SC, cipolleschi Differential Revision: D45310066 fbshipit-source-id: 5263280e14d959f0d7530571e2614a59c8838088
|
This pull request was exported from Phabricator. Differential Revision: D45310066 |
4dc795a to
7050567
Compare
|
This pull request has been merged in ec1ab73. |
Summary:
The AppDelegate (and other similar classes) only need to construct the TurboModuleManager for intialization purposes, and should not retain it beyond that. TurboModuleManager retains each of the TurboModule instances and through the new binding mechanism, also JSI pointers, which are invalid beyond the lifetime of the JS context.
Changelog: [iOS] Changed AppDelegate template to avoid retaining TurboModuleManager.
Differential Revision: D45310066