Currently, I can’t seem to figure out how to get a callback to be triggered per each button click. I tried seeing
if n_clicks is not None:
if n_clicks >= 1:
But basically this gets my callback to get repeatedly triggered (I am dealing with data that is being refreshed live)
@app.callback( dash.dependencies.Output("submit_div", "children"), [dash.dependencies.Input("sensor_selection_dropdown", "value"),dash.dependencies.Input("submit_note_button", "n_clicks")], [dash.dependencies.State('sensor_notes', 'value')], ) def submit_note(sensor_selections,submit_note_button,sensor_notes): print(sensor_notes,sensor_selections) for sensor in sensor_selections: if submit_note_button is not None : do something....
Can anyone please advise?
I found the following recent comment :
Is this the definite way to accomplish this?