@reekon-tools/boldr-utils 1.6.38 → 1.6.39

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.
@@ -18,10 +18,15 @@ const useBackgroundUrl = (image, resolveUrl) => {
18
18
  let cancelled = false;
19
19
  const resolve = resolveUrlRef.current;
20
20
  if (resolve) {
21
- resolve(image.storagePath).then((next) => {
21
+ // A rejecting resolver (e.g. offline URL resolution) must never become
22
+ // an unhandled rejection here — keep the current url; the consumer's
23
+ // own retries/invalidations drive the re-resolve.
24
+ resolve(image.storagePath)
25
+ .then((next) => {
22
26
  if (!cancelled)
23
27
  setUrl(next);
24
- });
28
+ })
29
+ .catch(() => { });
25
30
  }
26
31
  else {
27
32
  setUrl(image.downloadUrl);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reekon-tools/boldr-utils",
3
- "version": "1.6.38",
3
+ "version": "1.6.39",
4
4
  "description": "Shared utilities for formulas and measurement conversion used in Reekon apps",
5
5
  "author": "REEKON Tools",
6
6
  "license": "MIT",