0👍
There is predefined method nuxtServerInit which you can use in your store to get user ID to vuex on server side before fetching data. https://hashinteractive.com/blog/using-nuxtserverinit-in-vuex-to-fetch-component-data/
Then you can retrieve it from the store in the fetch method. Nuxt 2.12.2: Filling the store with the new fetch method
- [Vuejs]-Vue – Filter 2D Array but modify original unfiltered array v-models
- [Vuejs]-<li> be moved to another <ul> by vue
Source:stackexchange.com