Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hot reload will cause Maximum recursive updates exceeded in component <Form> #4350

Closed
2 of 5 tasks
tbl0605 opened this issue Jul 5, 2023 · 3 comments
Closed
2 of 5 tasks

Comments

@tbl0605
Copy link

tbl0605 commented Jul 5, 2023

What happened?

I get following error while using very simple custom field components:
[Vue warn]: Maximum recursive updates exceeded in component <Form>. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.

Reproduction steps

https://codesandbox.io/s/vee-validate-forked-lmxx59?file=/src/components/VeeInput.vue

  1. Open file VeeInput.vue
  2. modify file VeeInput.vue by writing some comment at line 7 and save the file
  3. check console

Version

Vue.js 3.x and vee-validate 4.x

What browsers are you seeing the problem on?

  • Firefox
  • Chrome
  • Safari
  • Microsoft Edge

Relevant log output

[Vue warn]: Maximum recursive updates exceeded in component <Form>. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.

Demo link

https://codesandbox.io/s/vee-validate-forked-lmxx59

Code of Conduct

@logaretm
Copy link
Owner

logaretm commented Jul 8, 2023

I have downloaded the example locally and upgraded a few Vue dependencies and it seems to be working fine. Can you reproduce it on a vite installation with the latest versions for Vue and vee-validate and vite?

This is a duplicate of #4119 and closing for the same reason, I tried the same code in a vite project and it did not happen so I'm assuming it is an HMR bug with the no longer recommended webpack ecosystem.

@logaretm logaretm closed this as completed Jul 8, 2023
@tbl0605
Copy link
Author

tbl0605 commented Jul 9, 2023

Hi @logaretm,
thank you for looking at my bug report :)
I actually don't use webpack (but Vite), I just copied the test case (and adapted it) from bug report #3580, I was a bit lazy to create a test case from scratch ;)

With the latest versions for Vue, Vee-validate and Vite, the problem doesn't happen anymore with very simple forms, but sadly it still occurs with more complex forms and components. I will try to create another simple test case, but it will probably take me some time (my components got complicated meanwhile).

@logaretm
Copy link
Owner

logaretm commented Jul 9, 2023

Sure, let me know here and I will check it then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants