Dec 22, 2021
0
Level 5
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.
Please or to participate in this conversation.