summaryrefslogtreecommitdiff
path: root/src/core/components/elements/Navbar/TopBanner.jsx
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-09-13 11:04:52 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-09-13 11:12:37 +0700
commit8bb683d2c695f0df292f6a7965efcbf3abd72a3d (patch)
treed16e66c49ecf140ba8f2c446399687342c8f399e /src/core/components/elements/Navbar/TopBanner.jsx
parentff972e0c46c81a38cddac2368000d3fc92756235 (diff)
Add lazy load on stock product
Diffstat (limited to 'src/core/components/elements/Navbar/TopBanner.jsx')
-rw-r--r--src/core/components/elements/Navbar/TopBanner.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/components/elements/Navbar/TopBanner.jsx b/src/core/components/elements/Navbar/TopBanner.jsx
index dca2e930..a757c260 100644
--- a/src/core/components/elements/Navbar/TopBanner.jsx
+++ b/src/core/components/elements/Navbar/TopBanner.jsx
@@ -6,7 +6,7 @@ import { TopBannerSkeleton } from '../Skeleton/TopBannerSkeleton'
const TopBanner = () => {
const fetchTopBanner = async () => await odooApi('GET', '/api/v1/banner?type=top-banner')
- const topBanner = useQuery('topBanner', fetchTopBanner)
+ const topBanner = useQuery('topBanner', fetchTopBanner, { refetchOnWindowFocus: false })
if (topBanner.isLoading) {
return <TopBannerSkeleton />