diff --git a/lib/commerce/utils/use-data.tsx b/lib/commerce/utils/use-data.tsx index 0f395f0e1..fa2b6175c 100644 --- a/lib/commerce/utils/use-data.tsx +++ b/lib/commerce/utils/use-data.tsx @@ -19,6 +19,7 @@ export default function useData( fetcherRef.current ) } + const response = useSWR( () => { const opts = typeof options === 'function' ? options() : options diff --git a/pages/search.tsx b/pages/search.tsx index 715448303..8cd130a80 100644 --- a/pages/search.tsx +++ b/pages/search.tsx @@ -145,7 +145,7 @@ export default function Search({ : () => ( ) }