We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c671726 commit 5c8d84aCopy full SHA for 5c8d84a
src/stores/cart.ts
@@ -40,7 +40,7 @@ const useCartStore = create<CartState>()(
40
persist(
41
(set) => ({
42
cart: null,
43
- isLoading: true,
+ isLoading: false, // Start with false since we'll show persisted data immediately
44
setCart: (cart: RootObject | null) => set({ cart, isLoading: false }),
45
updateCart: (newCart: RootObject) => {
46
set({ cart: newCart });
0 commit comments