Files
InvoiceShelf/resources/scripts/customer/stores/customer.js
Darko Gjorgjijoski 3ceb08bc31 Upgrade Pinia from v2 to v3 (#596)
Migrate all 37 store definitions from the deprecated object-with-id
signature to the string-id-first signature required by Pinia 3:

  defineStore({ id: 'name', ... }) → defineStore('name', { ... })
2026-04-02 16:12:11 +02:00

14 lines
225 B
JavaScript
Vendored

const { defineStore } = window.pinia
export const useCustomerStore = defineStore('customers', {
state: () => ({
customers: 'okay',
}),
actions: {
resetCustomers() {
this.customers = 'okay'
},
}
})