dsh-tdai-memory 0.3.1 → 0.3.2

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/client.js CHANGED
@@ -185,7 +185,10 @@ window.__ModuleLoader__.load({
185
185
  var [error, setError] = react.useState(null);
186
186
 
187
187
  react.useEffect(function () {
188
- if (typeof scope.load === "function") scope.load();
188
+ // No refresh call: the scope's public seam has no load() — reads ride the
189
+ // shared describe mirror, which re-reads on every Host
190
+ // `settings/document-updated`. The guarded scope.load() that used to sit
191
+ // here was dead code that read like a refresh that never happened.
189
192
  var alive = true;
190
193
  var sync = function () { if (alive) setSnapshot(scope.getSnapshot()); };
191
194
  var un = typeof scope.subscribe === "function" ? scope.subscribe(sync) : null;
@@ -258,7 +261,6 @@ window.__ModuleLoader__.load({
258
261
  }
259
262
  setNotice(t("saved"));
260
263
  if (response.result.value) setDraft(Object.assign({}, valueToDraft(response.result.value)));
261
- if (typeof scope.load === "function") scope.load();
262
264
  }).catch(function (e) {
263
265
  setBusy(false); setError(t("error") + ": " + String(e && e.message || e));
264
266
  });
@@ -275,7 +277,6 @@ window.__ModuleLoader__.load({
275
277
  if (!response.result.ok) { setError(t("error")); return; }
276
278
  setNotice(t("saved"));
277
279
  if (response.result.value) setDraft(Object.assign({}, valueToDraft(response.result.value)));
278
- if (typeof scope.load === "function") scope.load();
279
280
  }).catch(function (e) {
280
281
  setBusy(false); setError(t("error") + ": " + String(e && e.message || e));
281
282
  });