fix bug cart

This commit is contained in:
hamid zarghami
2025-10-27 13:41:00 +03:30
parent abc74eb970
commit fcbbf4c67a
4 changed files with 34 additions and 10 deletions
+19
View File
@@ -0,0 +1,19 @@
'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