Subscribe on changes!

Error when invoking a function within a function.

avatar
Jan 11th 2021

Version

3.0.5

Reproduction link

https://stackblitz.com/edit/vue-example-1?file=src/App.vue

Steps to reproduce

Using the provided minimal reproduction link, enter any username and "123" as password.

What is expected?

invoke the function

What is actually happening?

error during execution of render function at


I wanted to add a wrapper on the function coming from a hook.

avatar
Jan 11th 2021

You are passing the refs directly to logIn instead of the values:

 const onLogIn = () => {
      logIn(username.value, password.value)
    }