Skip to content

Commit 0d49212

Browse files
committed
Remove async cart fetch on plugin initialization
The cartUpdater plugin no longer fetches the cart asynchronously during initialization. It now simply initializes the cart store by calling useCart().
1 parent 57b9649 commit 0d49212

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

plugins/cartUpdater.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { useCart } from "@/store/useCart";
22

3-
export default defineNuxtPlugin(async (nuxtApp) => {
4-
const cart = useCart();
5-
await cart.fetchCart();
3+
export default defineNuxtPlugin(() => {
4+
useCart();
65
});

0 commit comments

Comments
 (0)