We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14cd552 commit 0ce3b6fCopy full SHA for 0ce3b6f
store/useCart.js
@@ -14,12 +14,13 @@ export const useCart = defineStore(
14
const error = ref(null);
15
const cartTotals = ref({});
16
17
- const {
18
- result: cartResult,
19
- refetch: refetchCart,
20
- } = useQuery(GET_CART_QUERY, null, {
21
- fetchPolicy: "network-only",
22
- });
+ const { result: cartResult, refetch: refetchCart } = useQuery(
+ GET_CART_QUERY,
+ null,
+ {
+ fetchPolicy: "network-only",
+ }
23
+ );
24
25
watch(cartResult, (newCartResult) => {
26
if (newCartResult && newCartResult.cart) {
@@ -146,5 +147,5 @@ export const useCart = defineStore(
146
147
storage: piniaPluginPersistedstate.localStorage,
148
paths: ["cart", "cartTotals"],
149
},
- },
150
151
);
0 commit comments