how to get the change value of specific field at the root level
How to get the onchanged (like react hook form useWatch hook) value from the useForm for the trigger useEffect in my case.
2 Replies
other-emerald•16mo ago
you can use something like that
but authors don't reccomend use this way, try use that way
stormy-gold•16mo ago
I'd probably go with
const myValue = form.useStore((state) => state.values.myField);
and then you can use myValue
in your useEffect