Fix logged in user stall (#1114)
This commit is contained in:
1 parent
4be6b11c1e
commit
d9b3ba0ff2
3 files changed
+5
-11
No files matched your search
+1
-2
@@ -1,11 +1,10 @@
|
||||
export default defineNuxtPlugin(async (nuxtApp) => {
|
||||
const authStore = await useAuth()
|
||||
const userStore = await useUser(true)
|
||||
await useUser()
|
||||
const cosmeticsStore = useCosmetics()
|
||||
const tagsStore = useTags()
|
||||
|
||||
nuxtApp.provide('auth', authStore.value)
|
||||
nuxtApp.provide('user', userStore)
|
||||
nuxtApp.provide('cosmetics', cosmeticsStore.value)
|
||||
nuxtApp.provide('tag', tagsStore.value)
|
||||
nuxtApp.provide('notify', (notif) => addNotification(notif))
|
||||
|
||||
Reference in new issue
Block a user