From 68c8c513d5e7bded23438ac59cae29018914b644 Mon Sep 17 00:00:00 2001 From: pawel-trysla Date: Mon, 7 Jun 2021 13:29:49 +0200 Subject: [PATCH] fix: differentiate chunk cache key in development --- src/client/chunks-api/ChunkManager.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/chunks-api/ChunkManager.ts b/src/client/chunks-api/ChunkManager.ts index 2e1a3a927..d67aed736 100644 --- a/src/client/chunks-api/ChunkManager.ts +++ b/src/client/chunks-api/ChunkManager.ts @@ -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;