Replies: 2 comments
-
How about this? final _nameSignal = signal('');
final _emailSignal = signal('');
final _formDataSignal = computed(() => FormData(name: _nameSignal(), email: _emailSignal())); |
Beta Was this translation helpful? Give feedback.
0 replies
-
You could also use a map signal too! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I don't like this part if the form is big having to reassign values:
Do you have any other suggestion that is better for such a use-case?
Beta Was this translation helpful? Give feedback.
All reactions