Replace the convoluted useAccountSession composable with a pinia store that in addition allows for the consolidation of all session related functions to grouped into one module.
13 lines
271 B
Vue
13 lines
271 B
Vue
<template>
|
|
<Header />
|
|
<NuxtPage />
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import "~/assets/global.css";
|
|
const event = useRequestEvent();
|
|
const sessionStore = useSessionStore();
|
|
await callOnce("fetch-session", async () => {
|
|
await sessionStore.fetch(event);
|
|
})
|
|
</script>
|