19 lines
381 B
TypeScript
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 |