@jsenv/navi 0.18.20 → 0.18.21

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.
@@ -1375,6 +1375,7 @@ const createAction = (callback, rootOptions = {}) => {
1375
1375
  keepOldData = false,
1376
1376
  meta = {},
1377
1377
 
1378
+ outputSignal,
1378
1379
  completeSideEffect,
1379
1380
  } = options;
1380
1381
  if (!Object.hasOwn(options, "params")) {
@@ -1793,6 +1794,9 @@ const createAction = (callback, rootOptions = {}) => {
1793
1794
  valueSignal.value = value;
1794
1795
  runningStateSignal.value = COMPLETED;
1795
1796
  const data = dataSignal.value;
1797
+ if (outputSignal) {
1798
+ outputSignal.value = data;
1799
+ }
1796
1800
  onComplete?.(data, action);
1797
1801
  completeSideEffect?.(action);
1798
1802
  });
@@ -1909,6 +1913,9 @@ const createAction = (callback, rootOptions = {}) => {
1909
1913
  if (!keepOldData) {
1910
1914
  valueSignal.value = valueInitial;
1911
1915
  }
1916
+ if (outputSignal) {
1917
+ outputSignal.value = null;
1918
+ }
1912
1919
  isPrerunSignal.value = true;
1913
1920
  runningStateSignal.value = IDLE;
1914
1921
  });