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

japortegijs's avatar

Update useForm() after XHR request

Good afternoon,

I'm building a CMS with Inertiajs (Vuejs 3) and Laravel where I'd like to support multi-language, so I have this language switch in my header. This switch is using the Link component, which performs a XHR request to update the page props, which works fine. In a form I use the useForm hook which does not seem to update when the page props change, how would one make the useForm hook reactive?

Thanks in advance.

0 likes
0 replies

Please or to participate in this conversation.