0👍
Let me see if I understand, do you want to make a session request and use the response in all components? This depends a lot on the structure of your project and its real objective, an alternative is to pass this data through inheritance from properties if this data is shared between parent and child components. if the data is shared between sister components or you need to use it in any application, I advise you to read the Vuex documentation. To perpetuate these sessions so they are not lost, you can also use localStorage to store the data.
Hope this helps.
- [Vuejs]-Rendering component on runtime after Http request in VueJS
- [Vuejs]-How to watch for a value which depends on another value vue?
Source:stackexchange.com