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
genetic-orange•2y ago
you can use something like that
but authors don't reccomend use this way, try use that way
implicit-lime•2y ago
I'd probably go with
const myValue = form.useStore((state) => state.values.myField); and then you can use myValue in your useEffect