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', { ... })
This commit is contained in:
Darko Gjorgjijoski
2026-04-02 16:12:11 +02:00
committed by GitHub
parent ad5a7e51b9
commit 3ceb08bc31
39 changed files with 121 additions and 109 deletions

View File

@@ -1,8 +1,7 @@
import { handleError } from '@/scripts/customer/helpers/error-handling'
const { defineStore } = window.pinia
import http from '@/scripts/http'
export const useInvoiceStore = defineStore({
id: 'customerInvoiceStore',
export const useInvoiceStore = defineStore('customerInvoiceStore', {
state: () => ({
totalInvoices: 0,
invoices: [],