@webkrafters/react-eagleeye 1.1.0-alpha.15 → 1.1.0-alpha.17

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.
@@ -132,8 +132,13 @@ var StreamerHandle = /*#__PURE__*/function () {
132
132
  }
133
133
  this.resource.endStream();
134
134
  this._chs.finalizer.unregister(this.resource);
135
+ var channel = this._entry.channel;
135
136
  this._entry.channel = null;
136
137
  this._chs.finalize(this._sMapHash);
138
+ setTimeout(function () {
139
+ var _channel$deref;
140
+ return (_channel$deref = channel.deref()) === null || _channel$deref === void 0 ? void 0 : _channel$deref.endStream();
141
+ }, 0);
137
142
  }
138
143
  }, {
139
144
  key: "inc",
@@ -432,15 +437,9 @@ var ObservableUniverse = exports.ObservableUniverse = /*#__PURE__*/function () {
432
437
  mounted.current = true;
433
438
  }
434
439
  var fn = function fn() {
435
- try {
436
- setStore(_objectSpread(_objectSpread({}, store), {}, {
437
- data: channel.data
438
- }));
439
- } catch (e) {
440
- if (!e.message.includes("Cannot read properties of null (reading 'getState')")) {
441
- throw e;
442
- }
443
- }
440
+ return setStore(_objectSpread(_objectSpread({}, store), {}, {
441
+ data: channel.data
442
+ }));
444
443
  };
445
444
  channel.addListener('data-changed', fn);
446
445
  return function () {
@@ -516,5 +515,4 @@ var Utility = exports.Utility = /*#__PURE__*/function () {
516
515
  }();
517
516
  function createContext() {
518
517
  return new ObservableUniverse();
519
- }
520
- {}
518
+ }
package/package.json CHANGED
@@ -126,7 +126,7 @@
126
126
  "test:watch": "eslint --fix && jest --updateSnapshot --watchAll"
127
127
  },
128
128
  "types": "dist/index.d.ts",
129
- "version": "1.1.0-alpha.15",
129
+ "version": "1.1.0-alpha.17",
130
130
  "dependencies": {
131
131
  "@webkrafters/eagleeye": "^1.0.8",
132
132
  "js-sha512": "^0.9.0",