@koalarx/ui 13.2.8 → 13.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/esm2020/lib/services/api-requester/koala.api-requester.base.mjs +6 -4
- package/core/fesm2015/koalarx-ui-core.mjs +5 -3
- package/core/fesm2015/koalarx-ui-core.mjs.map +1 -1
- package/core/fesm2020/koalarx-ui-core.mjs +5 -3
- package/core/fesm2020/koalarx-ui-core.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1340,10 +1340,12 @@ class KoalaApiRequesterBase {
|
|
|
1340
1340
|
return filter ?? null;
|
|
1341
1341
|
}
|
|
1342
1342
|
request(method, url, data = {}) {
|
|
1343
|
-
if (this.enableCache
|
|
1344
|
-
|
|
1343
|
+
if (this.enableCache) {
|
|
1344
|
+
if (KoalaApiRequesterCache.hasCache(url)) {
|
|
1345
|
+
return KoalaApiRequesterCache.getCacheAsObservable(url);
|
|
1346
|
+
}
|
|
1347
|
+
KoalaApiRequesterCache.createCache(url);
|
|
1345
1348
|
}
|
|
1346
|
-
KoalaApiRequesterCache.createCache(url);
|
|
1347
1349
|
return this.koalaService
|
|
1348
1350
|
.request(method, url, data)
|
|
1349
1351
|
.pipe(map(response => {
|