NuxtN
Nuxt16mo ago
Nisthar

why isn't input's value not updating when using useState value in it?

guys i have a useState that doesn't have any values, it later gets set to an object after a fetch request to an api
But if i use this useState object's value for an input, the input value is always empty

<Input id="account-id" :value="user.id" />

export const useUser = (): Ref<UserType> =>
  useState<UserType>('myapp.user')

const user = useUser() 



anyone know why the input's value never changes when the useState changes?
Was this page helpful?