meta object in useField/useForm should be a reactive type for transparancy #4367
soufian-madi
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was not sure about the reactivity of the meta object even from the official documentaion. After reading through some gibhub discousiosns i understood that it should update when changes occur. I find it confusing that other obejcts from useField like
errors
are of typeref
and are mentionend to bereactive reference
but not for meta even though it is basically reactive.I know that it should be treated as a readonly so maybe typing it as Readonly<Ref<>> can be an option. if this causes too much breaking changes a quick mention in the documentation would be nice for future devs.
Beta Was this translation helpful? Give feedback.
All reactions