If you have a callback with no output and an initial input, the initial callback will not fire.
Example:
fromdashimportDash, html, Input, callbackapp=Dash()
app.layout=html.Div([
html.Button("Start", id="start-btn", n_clicks=0),
])
@callback(Input("start-btn", "n_clicks"),)defupdate(n_clicks):
print(f"Clicked {n_clicks}")
If you have a callback with no output and an initial input, the initial callback will not fire.
Example: