first commit funcionando pinia

This commit is contained in:
2025-01-28 13:40:37 +01:00
parent f57ab3cb4a
commit 77e0a534ed
6 changed files with 171 additions and 138 deletions

View File

@@ -0,0 +1,22 @@
import { defineStore, acceptHMRUpdate } from 'pinia'
export const supabaseStore = defineStore('supabaseStore', {
state: () => ({
// counter: 0
prueba: 'prueba'
}),
getters: {
// doubleCount: (state) => state.counter * 2
},
actions: {
//increment() {
// this.counter++
//}
}
})
if (import.meta.hot) {
import.meta.hot.accept(acceptHMRUpdate(supabaseStore, import.meta.hot))
}