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