why is caching not working

This commit is contained in:
Kiril Videlov 2023-07-08 23:57:15 +02:00 committed by Kiril Videlov
parent 45640e505e
commit b5eee4cd2e

View File

@ -12,7 +12,11 @@ export interface Refreshable {
export class BranchStoresCache {
virtualBranchStores: Map<string, Refreshable & Readable<Loadable<Branch[]>>> = new Map();
remoteBranchStores: Map<string, Refreshable & Readable<Loadable<BranchData[]>>> = new Map();
targetBranchStores: Map<string, Readable<Loadable<Target>>> = new Map();
targetBranchStores: Map<string, Refreshable & Readable<Loadable<Target>>> = new Map();
constructor() {
console.log('WHY IS THIS CALLED ALL THE TIME');
}
getVirtualBranchStore(projectId: string) {
const cachedStore = this.virtualBranchStores.get(projectId);