A framework for building native applications using React
Fix thread-safety race in InspectorNetworkHelper (#55579)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55579 InspectorNetworkHelper used a lateinit var with an isInitialized check to lazily create an OkHttpClient. This pattern is not thread-safe — concurrent calls to loadNetworkResource could race on the initialization. Replace with the shared DevSupportHttpClient.websocketClient singleton, which is initialized at class load time and is inherently safe. Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D93480252 fbshipit-source-id: fefb144b3b26670954a77aa27c9b7f637290f21b
N
Nicola Corti committed
21d7efaad40830decb8a81b84e52c11f1451fe73
Parent: a92c7b1
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com>
on 2/18/2026, 3:38:50 PM