react-native/React
Nick Lockwood 64edddadcc Fixed race condition in RCTModuleData.methodQueue
Summary:
public
The implementation of the `methodQueue` lazy initializer in `RCTModuleData` could result in the queue being set twice, because calling `methodQueue` for a module that hasn't been instantiated would call `RCTModuleData.instance` to create the module, which itself calls `methodQueue`.

It's not clear if this was causing a bug, but it may be related to an occasional bug where the `RCTViewManager.methodQueue` returns nil.

Reviewed By: majak

Differential Revision: D2783320

fb-gh-sync-id: 9194da0fd7392f63825da1f5c450363dd300b635
2016-01-04 06:24:28 -08:00
..
Base Fixed race condition in RCTModuleData.methodQueue 2016-01-04 06:24:28 -08:00
Executors Pipe `platform` and `bundleEntry` through WebSocket connection 2015-12-29 18:25:28 -08:00
Layout updated css-layout and fixed callsites 2015-12-21 10:18:41 -08:00
Modules Export method to get current status bar height 2016-01-04 04:31:26 -08:00
Profiler Fix unused argument warnings 2015-12-30 14:16:29 -08:00
React.xcodeproj Add `RCTBundleURLProcessor` files to Xcode project 2015-12-29 11:05:42 -08:00
Views Fix unused argument warnings 2015-12-30 14:16:29 -08:00