Skip to content

Commit e891825

Browse files
modify getReadyCallbacks so an overlapping input/output is not an outstanding output
1 parent 517528b commit e891825

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dash-renderer/src/actions/dependencies_ts.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,15 @@ export const getReadyCallbacks = (
167167
forEach(output => (outputsMap[output] = true), outputs);
168168

169169
// Find `requested` callbacks that do not depend on a outstanding output (as either input or state)
170+
// Outputs which overlap an input do not count as an outstanding output
170171
return filter(
171172
cb =>
172173
all(
173174
cbp => !outputsMap[combineIdAndProp(cbp)],
174-
flatten(cb.getInputs(paths))
175+
difference(
176+
flatten(cb.getInputs(paths)),
177+
flatten(cb.getOutputs(paths))
178+
)
175179
),
176180
candidates
177181
);

0 commit comments

Comments
 (0)