Code review request: disablable widget #1988
agluszak
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wrote a function which takes a widget which "uses" a variable of type
T
and transforms it into a disablable widget which "uses" a variable of typeOption<T>
. If the widget becomes, disabledNone
is assigned to the variable and the old value is remembered.I'm pretty sure that the response handling can be simplified, especially that currently I pass the response in
InnerResponse
'sinner
field.Beta Was this translation helpful? Give feedback.
All reactions