Skip to content

Commit 0185df5

Browse files
martinbigiofacebook-github-bot-9
authored andcommitted
Tweak Hot Loading gating code
Reviewed By: mmahoney Differential Revision: D2815537 fb-gh-sync-id: d0a4d5c2a831c52cf3be6051a348ae9ba996f545
1 parent 66158ab commit 0185df5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

React/Modules/RCTDevMenu.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,9 @@ - (void)setLiveReloadEnabled:(BOOL)enabled
531531

532532
- (BOOL)hotLoadingAvailable
533533
{
534-
return false;
534+
return !_bridge.bundleURL.fileURL // Only works when running from server
535+
&& [_bridge.delegate respondsToSelector:@selector(bridgeSupportsHotLoading:)]
536+
&& [_bridge.delegate bridgeSupportsHotLoading:_bridge];
535537
}
536538

537539
- (void)setHotLoadingEnabled:(BOOL)enabled

0 commit comments

Comments
 (0)