TurboModule::emitDeviceEvent doesn't require jsi::Runtime argument anymore#43376
TurboModule::emitDeviceEvent doesn't require jsi::Runtime argument anymore#43376rshest wants to merge 2 commits into
Conversation
|
This pull request was exported from Phabricator. Differential Revision: D54643903 |
|
This pull request was exported from Phabricator. Differential Revision: D54643903 |
|
This pull request was exported from Phabricator. Differential Revision: D54643903 |
|
This pull request was exported from Phabricator. Differential Revision: D54643903 |
|
This pull request was exported from Phabricator. Differential Revision: D54643903 |
|
This pull request was exported from Phabricator. Differential Revision: D54643903 |
|
This pull request was exported from Phabricator. Differential Revision: D54643903 |
|
This pull request was exported from Phabricator. Differential Revision: D54643903 |
Base commit: 9b1c486 |
|
This pull request was exported from Phabricator. Differential Revision: D54643903 |
|
This pull request was exported from Phabricator. Differential Revision: D54643903 |
|
This pull request was exported from Phabricator. Differential Revision: D54643903 |
…book#43375) Summary: ## Changelog: [Internal] - As discussed with the team, it makes more sense to pass the reference to the correct `jsi::Runtime` object as an argument to the ` CallInvoker::invoke*` callbacks, that are provided by the user. There are various use cases when user would like to get a hold of the `jsi::Runtime` in the callback, and it makes sense, since it is guaranteed to run on the JS thread. So far people have been coming up with all kinds of workarounds for that, none of them safe enough. Reviewed By: rubennorte Differential Revision: D54643171
…ymore (facebook#43376) Summary: ## Changelog: [Internal] - Make it possible to call `emitDeviceEvent` from C++ TurboModules without the need to explicitly provide the reference to `jsi::Runtime`, as in some contexts (when we call e.g. not from the JS thread itself) it may be hard to get hold of. Reviewed By: rubennorte Differential Revision: D54643903
|
This pull request was exported from Phabricator. Differential Revision: D54643903 |
|
This pull request has been merged in 6c28c87. |
Summary:
Changelog:
[Internal] -
Make it possible to call
emitDeviceEventfrom C++ TurboModules without the need to explicitly provide the reference tojsi::Runtime, as in some contexts (when we call e.g. not from the JS thread itself) it may be hard to get hold of.Differential Revision: D54643903