Fix hydration issue + Edit Page (#1043)

This commit is contained in:
Geometrically
2023-03-12 13:00:09 -07:00
committed by GitHub
parent 130ece3d2e
commit 6d9779a497
5 changed files with 32 additions and 26 deletions

12
plugins/2.state.js Normal file
View File

@@ -0,0 +1,12 @@
export default defineNuxtPlugin(async (nuxtApp) => {
const authStore = await useAuth()
const userStore = await useUser(true)
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))
})