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

Maximum call stack exceeded when passing a computed as initialValues into useForm #4563

Closed
1 of 5 tasks
olegshibaev opened this issue Nov 27, 2023 · 0 comments
Closed
1 of 5 tasks

Comments

@olegshibaev
Copy link

What happened?

Since v4.12.0 passing a computed ref as initialValues into useForm causes a RangeError: Maximum call stack size exceeded

    useForm({
      initialValues: computed(() => ({
        fullName: data.value?.origin,
      })),
    });

The initialValues should be unref'd to maintain some form of backwards compatibility.

Reproduction steps

No response

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

No response

Demo link

https://codesandbox.io/p/sandbox/basic-example-composition-api-forked-fw346y

Code of Conduct

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

1 participant