@camera.ui/browser 0.0.152 → 0.0.153
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/dist/index.js +11 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1788,8 +1788,18 @@ function sleep(ms) {
|
|
|
1788
1788
|
}
|
|
1789
1789
|
function createStorageOperations(state, config, isLoading, error) {
|
|
1790
1790
|
let inflightGetConfig;
|
|
1791
|
+
let inflightStorage;
|
|
1791
1792
|
function getConfig() {
|
|
1792
|
-
|
|
1793
|
+
if (!inflightGetConfig || inflightStorage !== state.cachedStorage) {
|
|
1794
|
+
inflightStorage = state.cachedStorage;
|
|
1795
|
+
const request = getConfigWithRetry().finally(() => {
|
|
1796
|
+
if (inflightGetConfig === request) {
|
|
1797
|
+
inflightGetConfig = void 0;
|
|
1798
|
+
inflightStorage = void 0;
|
|
1799
|
+
}
|
|
1800
|
+
});
|
|
1801
|
+
inflightGetConfig = request;
|
|
1802
|
+
}
|
|
1793
1803
|
return inflightGetConfig;
|
|
1794
1804
|
}
|
|
1795
1805
|
async function getConfigWithRetry() {
|