@bian-womp/spark-graph 0.3.29 → 0.3.30

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/esm/index.js CHANGED
@@ -1942,8 +1942,8 @@ class EdgePropagator {
1942
1942
  const nodeRerunPolicy = dstNode.policy?.rerunOnSameInput === true;
1943
1943
  const descRerunPolicy = desc?.policy?.rerunOnSameInput === true;
1944
1944
  const shouldRerunOnSameInput = nodeRerunPolicy || descRerunPolicy;
1945
- const inputWasSetAfterLastRun = dstNode.lastInputAt?.[edge.target.handle] &&
1946
- dstNode.lastSuccessAt &&
1945
+ const inputWasSetAfterLastRun = !dstNode.lastInputAt?.[edge.target.handle] ||
1946
+ !dstNode.lastSuccessAt ||
1947
1947
  dstNode.lastInputAt[edge.target.handle] > dstNode.lastSuccessAt;
1948
1948
  const shouldExecute = valueChanged || shouldRerunOnSameInput || inputWasSetAfterLastRun;
1949
1949
  if (!shouldExecute) {