You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tracked the reason to computed behavior not waiting till the next tick to recompute stuff, so when HMR occurs it removes the field (unmounts), which will trigger a recomputation then it will add it again which will also trigger another recomputation. These recomputations result in the Form component re-rendering which will also trigger a few recomputations of its own during the HMR and it will be locked in a loop.
Replacing it with a watchEffect seems to work better here as it should wait for the next tick between recomputations, which is enough time for the HMR to stabilize.
What happened?
I'm using custom component, it will cause Maximum recursive updates exceeded in component
when hot reloaded.Reproduction steps
codesandbox
TextInput.vue
component.you can also check documentation example custom-inputs, it happend same issue when component hot reloaded.
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Relevant log output
No response
Demo link
https://codesandbox.io/s/vee-validate-uddth
Code of Conduct
The text was updated successfully, but these errors were encountered: