Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lewiswildman's avatar

lewiswildman wrote a reply+100 XP

3mos ago

How to track form data?

I probably should've specified I'm using inertia with react. Is there any kind of equivalent to watch in react that you know of?

lewiswildman's avatar

lewiswildman started a new conversation+100 XP

3mos ago

How to track form data?

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?