Initial commit: Craft2Prints with Stages 1-3
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
'use client';
|
||||
|
||||
import { useEffect } from 'react';
|
||||
import { useCart } from '@/lib/cartStore';
|
||||
|
||||
export default function ClearCartOnMount() {
|
||||
const clear = useCart((s) => s.clear);
|
||||
useEffect(() => {
|
||||
clear();
|
||||
}, [clear]);
|
||||
return null;
|
||||
}
|
||||
Reference in New Issue
Block a user