For the vue you can do this
import { watch } from 'vue'
watch(
() => form.data(),
(newData, oldData) => {
console.log('Form changed:', newData)
},
{ deep: true }
)
I'm using intertia with wayfinder to build my forms. But I've ran into a situation where I need to track any changes to the form data. However, I can't see any way of doing that?
With the form context, I can do something like form.getData(), but that only returns a snapshot of the data and not the actual state. But on the form context itself, I see no way of getting the state or tracking any of it.
Is there anything that I've missed that may allow me to track the form data and it's state?
Please or to participate in this conversation.