Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 86a4ed3

Browse files
committed
clear cache only during debug
1 parent f2b109c commit 86a4ed3

File tree

1 file changed

+1
-1
lines changed
  • android/app/src/main/java/com/microsoft/codepush/react

1 file changed

+1
-1
lines changed

android/app/src/main/java/com/microsoft/codepush/react/CodePush.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ private void initializeUpdateAfterRestart() {
203203
rollbackPackage();
204204
} else {
205205
// Clear the React dev bundle cache so that new updates can be loaded.
206-
if (!this.isDebugMode) {
206+
if (this.isDebugMode) {
207207
clearReactDevBundleCache();
208208
}
209209
// Mark that we tried to initialize the new update, so that if it crashes,

0 commit comments

Comments
 (0)