Skip to content

Commit

Permalink
fix: differentiate chunk cache key in development
Browse files Browse the repository at this point in the history
  • Loading branch information
zamotany committed Jun 7, 2021
1 parent 015c02b commit 68c8c51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client/chunks-api/ChunkManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
// @ts-ignore
import { NativeModules } from 'react-native';

const CACHE_KEY = 'NativePack.ChunkManager.Cache';
const CACHE_KEY = `NativePack.ChunkManager.Cache.${
__DEV__ ? 'debug' : 'release'
}`;

interface Cache {
urls: Record<string, string>;
Expand Down

0 comments on commit 68c8c51

Please sign in to comment.