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.
@@ -20,6 +20,9 @@ export const cacheValue = (
20
20
  target(store).valueMap.set(key, future)
21
21
  future
22
22
  .then((value) => {
23
+ if (future.isCanceled) {
24
+ return
25
+ }
23
26
  cacheValue(key, value, subject, store)
24
27
  subject.next({ newValue: value, oldValue: value })
25
28
  })
@@ -11,7 +11,7 @@ export type Fated<T, E extends Error = Error> = Loadable<E | T>
11
11
  * Can be constructed like a Promise, or from an existing Promise.
12
12
  */
13
13
  export class Future<T> extends Promise<T> {
14
- private isCanceled = false
14
+ public isCanceled = false
15
15
 
16
16
  public constructor(
17
17
  executor:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atom.io",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
4
4
  "description": "Composable and testable reactive data library.",
5
5
  "homepage": "https://atom.io.fyi",
6
6
  "sideEffects": false,