Problem getting data from Pinia
I have a component used within my layout that is responsible for setting user information. However, when I try to access this user info from another component located deeper in the component tree, it returns null.
navbar.vue
test.vue
i logged them and it seems the problem is that test.vue runs before navbar.vue
file structure
navbar.vue
test.vue
i logged them and it seems the problem is that test.vue runs before navbar.vue
file structure
- dashboardLayout
-- navbar.vue // -> getting data here
-- TestLayout
--- AComponent.vue
---- Test.vue // -> runs here