Rename requiresMainThreadSetup -> requiresMainQueueSetup in code comment (#22328)
Summary: Update reference to property in code comment in `RCTBridgeModule`. There is no such thing as `requiresMainThreadSetup` in the codebase. Its called `requiresMainQueueSetup` now. Pull Request resolved: https://github.com/facebook/react-native/pull/22328 Differential Revision: D13115352 Pulled By: shergin fbshipit-source-id: 511d627388b51029821c4b1ddf4caac30e573040
This commit is contained in:
parent
346c9d5f2c
commit
1fa56a0ac4
|
@ -301,7 +301,7 @@ RCT_EXTERN void RCTRegisterModule(Class); \
|
|||
* for the lifetime of the bridge, so it is not suitable for returning dynamic values, but may be used for long-lived
|
||||
* values such as session keys, that are regenerated only as part of a reload of the entire React application.
|
||||
*
|
||||
* If you implement this method and do not implement `requiresMainThreadSetup`, you will trigger deprecated logic
|
||||
* If you implement this method and do not implement `requiresMainQueueSetup`, you will trigger deprecated logic
|
||||
* that eagerly initializes your module on bridge startup. In the future, this behaviour will be changed to default
|
||||
* to initializing lazily, and even modules with constants will be initialized lazily.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue