@bian-womp/spark-graph 0.3.29 → 0.3.31
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 +2 -2
- package/lib/cjs/index.cjs.map +1 -1
- package/lib/esm/index.js +2 -2
- package/lib/esm/index.js.map +1 -1
- package/package.json +2 -2
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) {
|