From 7298d8e811a68cb92c02a7d810f412498d1609d8 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Thu, 18 Jan 2024 13:18:04 +0700
Subject: Update product detail performance

---
 src-migrate/modules/product-detail/components/Breadcrumb.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src-migrate/modules/product-detail/components/Breadcrumb.tsx')

diff --git a/src-migrate/modules/product-detail/components/Breadcrumb.tsx b/src-migrate/modules/product-detail/components/Breadcrumb.tsx
index ec445b60..f41859a9 100644
--- a/src-migrate/modules/product-detail/components/Breadcrumb.tsx
+++ b/src-migrate/modules/product-detail/components/Breadcrumb.tsx
@@ -12,7 +12,8 @@ type Props = {
 const Breadcrumb = ({ id, name }: Props) => {
   const query = useQuery({
     queryKey: ['product-category-breadcrumb'],
-    queryFn: () => getProductCategoryBreadcrumb(id)
+    queryFn: () => getProductCategoryBreadcrumb(id),
+    refetchOnWindowFocus: false
   })
 
   const breadcrumbs = query.data || []
-- 
cgit v1.2.3

