Closed mukeshprajapati-kombee closed 2 years ago
Right now there is no way to update a ref inside setup. That said, it looks like there is no way for a user to update the value of admin
from the component either - seems like you are attempting to test a case that is impossible in any real application.
You could make admin
a prop or something, perhaps?
Currently no way to modify values in setup
, so I'll close this. I don't expect this is something that will be implemented - if you need to update value, I'd recommend doing it like a user with trigger
, props
, etc.
I created a component using the setup in vue3, how can I update vue ref using vue-test-util 2?