Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit 06f629f

Browse files
committed
fix tests
1 parent 9ccfce2 commit 06f629f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/actions/index.js

+11-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,17 @@ export function notifyObservers(payload) {
210210
return;
211211
}
212212
InputGraph.dependenciesOf(node).forEach(outputId => {
213-
outputObservers.push(outputId);
213+
/*
214+
* Multiple input properties that update the same
215+
* output can change at once.
216+
* For example, `n_clicks` and `n_clicks_previous`
217+
* on a button component.
218+
* We only need to update the output once for this
219+
* update, so keep outputObservers unique.
220+
*/
221+
if (!contains(outputId, outputObservers)) {
222+
outputObservers.push(outputId);
223+
}
214224
});
215225
});
216226
}

0 commit comments

Comments
 (0)