Files
leim-tools/app/stores/CharacterStore.ts
Alexis 7fdab8601f Migration to nuxt 4
Used codemods CLI and reworked most alias'd path that stopped working
2025-07-27 14:30:30 +02:00

13 lines
324 B
TypeScript

import type { Character } from "@@/models/Characters"
import { defineStore } from "pinia"
export const useCharacters = defineStore("characters", () => {
const characters = ref<Character[]>([])
async function setCharacters(data: Character[]) {
characters.value = data
}
return { characters, setCharacters }
})