Skip to content

Commit 15619c2

Browse files
usrbowefacebook-github-bot
authored andcommitted
Fix PerfMonitor appearance when reloading JS (#24073)
Summary: Fix for this issue I rasied: #24024 When I toggle `Show Perf Monitor` and reload JS `CMD+R` the Perf Monitor will be hidden, but settings in dev menu will persist. So to fix this state and need to `Hide Perf Monitor` and `Show Perf Monitor` again to see it. [iOS] [Fixed] - Show Perf Monitor, after reloading JS Pull Request resolved: #24073 Differential Revision: D14560025 Pulled By: cpojer fbshipit-source-id: cd5602bd6ee041b8b3e61d163d10bd8bc47237b9
1 parent 25a58d7 commit 15619c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

React/Profiler/RCTPerfMonitor.m

+3
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ - (RCTDevMenuItem *)devMenuItem
156156
if (!_devMenuItem) {
157157
__weak __typeof__(self) weakSelf = self;
158158
__weak RCTDevSettings *devSettings = self.bridge.devSettings;
159+
if (devSettings.isPerfMonitorShown) {
160+
[weakSelf show];
161+
}
159162
_devMenuItem =
160163
[RCTDevMenuItem buttonItemWithTitleBlock:^NSString *{
161164
return (devSettings.isPerfMonitorShown) ?

0 commit comments

Comments
 (0)