Skip to content

Commit 1740f4f

Browse files
committed
adjusting failing test
1 parent 299d17a commit 1740f4f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/integration/callbacks/test_prevent_update.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ def callback1(value):
3636
raise PreventUpdate("testing callback does not update")
3737
return value
3838

39-
@app.callback(Output("output2", "children"), [Input("output1", "children")])
39+
@app.callback(
40+
Output("output2", "children"),
41+
[Input("output1", "children")],
42+
prevent_initial_call=True,
43+
)
4044
def callback2(value):
4145
callback2_count.value += 1
4246
return value

0 commit comments

Comments
 (0)