cretueusebiu / vform

Handle Laravel-Vue forms and validation with ease.
https://vform.vercel.app
MIT License
607 stars 120 forks source link

Problem with fetch method on Nuxt #140

Open aliwesome opened 2 years ago

aliwesome commented 2 years ago

There's problem on SSR with message _vm.form.errors.has is not a function when async fetch() is being used on components in Nuxt.

Remo commented 2 years ago

There are two other issues describing the same problem:

If you check the second link, you'll find an example that works. It doesn't seem to be using async fetch() but rather async asyncData. In my case it does seem to fix the problem. I can still render my data on the server and use vform, but it's a shame we have to be careful and never use async fetch when using vform. I still wonder what the actual issue is..