@expressive/mvc 0.10.0 → 0.10.1

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/lib/index.js CHANGED
@@ -1332,9 +1332,11 @@ function useValue(source, compute, suspend) {
1332
1332
  }
1333
1333
  defineProperty(sub, "proxy", {
1334
1334
  get() {
1335
- if (value === undefined && suspend)
1335
+ if (value !== undefined)
1336
+ return value;
1337
+ if (suspend)
1336
1338
  throw new Promise(res => retry = res);
1337
- return value;
1339
+ return null;
1338
1340
  }
1339
1341
  });
1340
1342
  return sub;