From 014d1954634d651b3ae4066a4932020d7e87e7c9 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Thu, 15 Oct 2020 12:12:28 -0300 Subject: [PATCH] Adding Search Skeleton --- lib/commerce/utils/use-data.tsx | 1 + pages/search.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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({ : () => ( ) }