atom.io 0.9.5 → 0.9.6
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/internal/dist/index.d.mts +1 -1
- package/internal/dist/index.d.ts +1 -1
- package/internal/dist/index.js +3 -0
- package/internal/dist/index.js.map +1 -1
- package/internal/dist/index.mjs +3 -0
- package/internal/dist/index.mjs.map +1 -1
- package/internal/src/caching.ts +3 -0
- package/internal/src/future.ts +1 -1
- package/package.json +1 -1
package/internal/dist/index.mjs
CHANGED
|
@@ -908,6 +908,9 @@ var cacheValue = (key, value, subject, store = IMPLICIT.STORE) => {
|
|
|
908
908
|
const future = new Future(value);
|
|
909
909
|
target(store).valueMap.set(key, future);
|
|
910
910
|
future.then((value2) => {
|
|
911
|
+
if (future.isCanceled) {
|
|
912
|
+
return;
|
|
913
|
+
}
|
|
911
914
|
cacheValue(key, value2, subject, store);
|
|
912
915
|
subject.next({ newValue: value2, oldValue: value2 });
|
|
913
916
|
}).catch((error) => {
|