mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Don't flash the performance monitor there's no metro connection (#54019)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/54019 Currently the performance monitor flickers on boot if there's no metro connection. This change checks first if we have a packager before enabling the monitor. No metro connection: {F1982423105} Metro connection: {F1982423112} Changelog: [Internal] Reviewed By: shwanton Differential Revision: D83701372 fbshipit-source-id: d099880d3ab509942a937a6bde11ebdde13450cd
This commit is contained in:
committed by
meta-codesync[bot]
parent
84947fb0de
commit
53dc68a31d
+4
-2
@@ -567,8 +567,10 @@ public abstract class DevSupportManagerBase(
|
||||
perfMonitorOverlayManager?.let { manager ->
|
||||
reactInstanceDevHelper.inspectorTarget?.addPerfMonitorListener(manager)
|
||||
}
|
||||
perfMonitorOverlayManager?.enable()
|
||||
perfMonitorOverlayManager?.startBackgroundTrace()
|
||||
if (isPackagerConnected) {
|
||||
perfMonitorOverlayManager?.enable()
|
||||
perfMonitorOverlayManager?.startBackgroundTrace()
|
||||
}
|
||||
perfMonitorInitialized = true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user