You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe it make sense to extract a state object like ProgressButtonState that contains those values as State<Boolean|Duration>.. 🤔
We should also introduce a rememberProgressButtonState() that returns that (remembered) state.
Users of the ProgressButton can simply put the state into the ProgressButton itself and update the state instead of calling the ProgressButton function again.
Does this make sense? 🤔
The text was updated successfully, but these errors were encountered:
Right now we have the following properties as function params:
Maybe it make sense to extract a state object like
ProgressButtonState
that contains those values asState<Boolean|Duration>
.. 🤔We should also introduce a
rememberProgressButtonState()
that returns that (remembered) state.Users of the ProgressButton can simply put the state into the
ProgressButton
itself and update the state instead of calling the ProgressButton function again.Does this make sense? 🤔
The text was updated successfully, but these errors were encountered: