access to something everywhere in the project
Hey, I'm using kinde for the authentification and i can access to the user with
$auth.user
. How can I make something like that?
Thank for your help3 Replies
That's global state you want. You can do that by using
useState
in a composable like this for example
Then use it anywhere in the app
I find useState
is enough for me but you can also see Pinia
for more complex state managmentok thank you
I'm trying to fetch data from my api but I got many errors . Can You help me please
Here is my code :
and the errors