facebook / react

The library for web and native user interfaces.

Home Page:https://react.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DevTools: Backend console settings reportedly not synced to RN backend

bvaughn opened this issue · comments

@feedthejim reported that disabling the "Break on Warning" feature does not update the backend settings (in memory, without a reload) for React Native:
Screen Shot 2021-09-14 at 11 07 04 AM

I believe the new settings should be updated here:

// Settings may change after we've patched the console.
// Using a shared ref allows the patch function to read the latest values.
consoleSettingsRef.appendComponentStack = appendComponentStack;
consoleSettingsRef.breakOnConsoleErrors = breakOnConsoleErrors;
consoleSettingsRef.showInlineWarningsAndErrors = showInlineWarningsAndErrors;
consoleSettingsRef.hideConsoleLogsInStrictMode = hideConsoleLogsInStrictMode;

But it sounds like they aren't. We should investigate.

Passing off to @lunaruan who's already looking into console changes and recently modified this code.

I tested this an it seemed like all the settings were updating without an update for me. Does Jimmy have any more repro steps for this bug?

Let's close this since it seems to be working as designed. When he's back from PTO, @feedthejim can let us know if there's something we missed and we can re-open.