Skip to content

Commit 44e5bc9

Browse files
cortinicofacebook-github-bot
authored andcommitted
Do not crash on onJSBundleLoadedFromServer when fast-refreshing on bridgeless mode
Summary: RN-Tester is currently instacrashing on fast-refresh (pressing r on Metro) as it ends up on `onJSBundleLoadedFromServer` which throws an exception on Bridgeless mode. I'm fixing it by following the same logic as `onReloadWithJSDebugger`. Changelog: [Android] [Fixed] - Do not crash on onJSBundleLoadedFromServer when fast-refreshing on bridgeless mode Reviewed By: huntie Differential Revision: D54121838 fbshipit-source-id: 82d98ec0c5b2295f5751525368c956574dd7f3a0
1 parent 2647dc8 commit 44e5bc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/BridgelessDevSupportManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public void onReloadWithJSDebugger(JavaJSExecutor.Factory proxyExecutorFactory)
119119

120120
@Override
121121
public void onJSBundleLoadedFromServer() {
122-
throw new IllegalStateException("Not implemented for bridgeless mode");
122+
// Not implemented
123123
}
124124

125125
@Override

0 commit comments

Comments
 (0)