diff --git a/blocks/app.ts b/blocks/app.ts index 8ef4251e2..409a1f9cf 100644 --- a/blocks/app.ts +++ b/blocks/app.ts @@ -215,7 +215,13 @@ const injectAppStateOnManifest = < ), loaders: mapObjKeys( manifest.loaders ?? {}, - (mod) => ({ ...mod, default: injectAppState(state, mod.default) }), + (mod) => ({ + ...mod, + default: injectAppState(state, mod.default), + cacheKey: mod.cacheKey + ? injectAppState(state, mod.cacheKey) + : undefined, + }), ), }; }; diff --git a/engine/releases/fetcher.ts b/engine/releases/fetcher.ts index 046ded1ea..263dcaa7c 100644 --- a/engine/releases/fetcher.ts +++ b/engine/releases/fetcher.ts @@ -4,8 +4,8 @@ import { newFsProviderFromPath } from "./fs.ts"; import { OnChangeCallback, Release } from "./provider.ts"; import { CurrResolvables, - RealtimeReleaseProvider, newRealtime, + RealtimeReleaseProvider, } from "./realtime.ts"; const releaseCache: Record> = {};