Skip to content

Commit 64078df

Browse files
committed
Refactor useQuery call formatting in useCart.js
Reformatted the useQuery call to improve readability by placing each argument on a separate line and updating quote style for consistency.
1 parent fe009cd commit 64078df

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

store/useCart.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,14 @@ export const useCart = defineStore(
1717
loading,
1818
error,
1919
refetch: refetchCart,
20-
} = useQuery(GET_CART_QUERY, {}, {
21-
fetchPolicy: 'cache-and-network',
22-
notifyOnNetworkStatusChange: true,
23-
});
20+
} = useQuery(
21+
GET_CART_QUERY,
22+
{},
23+
{
24+
fetchPolicy: "cache-and-network",
25+
notifyOnNetworkStatusChange: true,
26+
},
27+
);
2428

2529
watch(
2630
cartData,

0 commit comments

Comments
 (0)