1👍
✅
All data shared between more than one ccomponent
Such as the auth user data and website settings
Should be in vuex or pinia
Because you need it in the sidebar – navbar – user profile – website settings
If you’re going to share all of these components it’s going to be bad code
You can save some localStorage data such as the token so that you can use it to fetch the data again when the page is reloaded
Source:stackexchange.com