Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Ensure the same fetch can be subscribed multiple times

Oliver Günther58e158072a9a
diff --git a/frontend/src/app/core/state/resource-store.service.ts b/frontend/src/app/core/state/resource-store.service.ts
index 4b4dee60bbc..f014662106b 100644
--- a/frontend/src/app/core/state/resource-store.service.ts
+++ b/frontend/src/app/core/state/resource-store.service.ts
@@ -37,6 +37,7 @@ import {
filter,
finalize,
map,
+ shareReplay,
switchMap,
tap,
} from 'rxjs/operators';
@@ -288,6 +289,7 @@ export abstract class ResourceStoreService<T extends { id:ID }> {
throw error;
}),
+ shareReplay(1),
);
}
@@ -316,6 +318,7 @@ export abstract class ResourceStoreService<T extends { id:ID }> {
throw error;
}),
+ shareReplay(1),
);
}