From a9bed8e75d9b9613c5fcb69436a2d3af763f456d Mon Sep 17 00:00:00 2001 From: Robert Balicki Date: Wed, 16 Nov 2022 19:47:55 -0800 Subject: [PATCH] Add JS changes Summary: # What * Pass the DevTools Settings Manager to connectToDevTools. * This is an object that provides write and synchronized read access to on-device storage, that React DevTools will use during startup. * This allows us to persist settings like whether to show component stacks on error, and on restart, behave correctly. In the future, this will be used to power the "restart and profile" flow. Changelog [General][Added] Pass DevTools Settings Manager to connectToDevTools Reviewed By: lunaruan Differential Revision: D40880260 fbshipit-source-id: 379a2c93b4cde0360e6fd380d837f426943bfa9e --- Libraries/Core/setUpReactDevTools.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/Core/setUpReactDevTools.js b/Libraries/Core/setUpReactDevTools.js index be647e33b4d2ca..ecdd14a44a65e4 100644 --- a/Libraries/Core/setUpReactDevTools.js +++ b/Libraries/Core/setUpReactDevTools.js @@ -62,6 +62,7 @@ if (__DEV__) { }); const ReactNativeStyleAttributes = require('../Components/View/ReactNativeStyleAttributes'); + const devToolsSettingsManager = require('../DevToolsSettings/DevToolsSettingsManager'); reactDevTools.connectToDevTools({ isAppActive, @@ -70,6 +71,7 @@ if (__DEV__) { ReactNativeStyleAttributes, ), websocket: ws, + devToolsSettingsManager, }); } };