I have one small problem with Vue 3. I'm trying to login a user, and it's working almost good, the problem is that, I have to refresh the page. So I have 2 files, one is for header where I'm getting logged in user token like:
const token = computed( () => useCookies().cookies.get('token') )
and login vue, where I set token like:
So if I have computed function, shouldn't vue get it in realtime? Or what am I missing here?