colada
colada copied to clipboard
when I you use composition api code approach in store it doesn't display any data
`import { defineStore } from "pinia"; import { computed, ref } from "vue";
export const useFormsStore = defineStore({ id: "forms-store", state: () => { //properties const forms = ref(); const filters = ref(); const errors = ref({}); ......`
Same here :)
My example looks like this:
import { defineStore } from 'pinia'
export const useReservationForm = defineStore('reservationForm', () => {
const data = {
firstName: 'Joe',
lastName: 'Doe',
emailAddress: '',
}
return {
data,
}
})
And the displayed store in Colada stays empty:
If I find time, I'll see if I can contribute.