Files
shop-front/src/components/ManageData.tsx
T
hamid zarghami fcbbf4c67a fix bug cart
2025-10-27 13:41:00 +03:30

19 lines
381 B
TypeScript

'use client'
import { useProductStore } from "@/app/product/store/Store";
import { usePathname } from "next/navigation";
import { useEffect } from "react";
const ManageData = () => {
const { setVariantId } = useProductStore()
const pathname = usePathname()
useEffect(() => {
setVariantId('')
}, [pathname]);
return null
}
export default ManageData