Skip to content

Commit 81390bf

Browse files
committed
add appState on cacheKey function
1 parent 9c35730 commit 81390bf

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Diff for: blocks/app.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,13 @@ const injectAppStateOnManifest = <
215215
),
216216
loaders: mapObjKeys(
217217
manifest.loaders ?? {},
218-
(mod) => ({ ...mod, default: injectAppState(state, mod.default) }),
218+
(mod) => ({
219+
...mod,
220+
default: injectAppState(state, mod.default),
221+
cacheKey: mod.cacheKey
222+
? injectAppState(state, mod.cacheKey)
223+
: undefined,
224+
}),
219225
),
220226
};
221227
};

Diff for: engine/releases/fetcher.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { newFsProviderFromPath } from "./fs.ts";
44
import { OnChangeCallback, Release } from "./provider.ts";
55
import {
66
CurrResolvables,
7-
RealtimeReleaseProvider,
87
newRealtime,
8+
RealtimeReleaseProvider,
99
} from "./realtime.ts";
1010

1111
const releaseCache: Record<string, Promise<Release | undefined>> = {};

0 commit comments

Comments
 (0)