Open michaelbabyn opened 3 years ago
Interesting… normally n_clicks
is used as a trigger, it’s value irrelevant. Do you have an example use case for persistence here?
The use case here is a multipage app that generates a graph after being triggered by a button click (which the users presses after secting a couple of other controls which are used as State
). So the value of n_clicks
would in effect be storing "whether the user had decided to generate a graph or not".
I wonder if it makes sense to add persistence to
html.Button
sincen_clicks
is often used as an input to callbacks.cc @plotly/dash-core , @sudburyrob