MCPcopy Create free account
hub / github.com/bencodezen/shopify-nuxt-kit / state

Function state

store/cart.js:3–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { formatCurrency } from '../utils/currency'
2
3export const state = () => ({
4 base: {
5 id: '',
6 lines: {
7 edges: [],
8 },
9 estimatedCost: {
10 subtotalAmount: {},
11 totalAmount: {},
12 },
13 },
14})
15
16export const getters = {
17 id: (state) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected