diff --git a/deno.json b/deno.json
index a4d657b93..ef26b6276 100644
--- a/deno.json
+++ b/deno.json
@@ -62,5 +62,5 @@
"jsx": "react-jsx",
"jsxImportSource": "preact"
},
- "version": "0.64.39"
+ "version": "0.64.43"
}
diff --git a/htmx/sections/Deferred.tsx b/htmx/sections/Deferred.tsx
index 9c4f7a392..ac3746e94 100644
--- a/htmx/sections/Deferred.tsx
+++ b/htmx/sections/Deferred.tsx
@@ -40,7 +40,9 @@ const Deferred = (props: Props) => {
if (loading === "eager") {
return (
<>
- {sections.map((section) => )}
+ {sections.map((section, index) => (
+
+ ))}
>
);
}
@@ -60,8 +62,8 @@ const Deferred = (props: Props) => {
hx-swap="outerHTML"
style={{ height: "100vh" }}
/>
- {props.fallbacks?.map((section) =>
- section ? : null
+ {props.fallbacks?.map((section, index) =>
+ section ? : null
)}
>
);
diff --git a/utils/components/Slider.tsx b/utils/components/Slider.tsx
index c0854aff2..8aa9940e5 100644
--- a/utils/components/Slider.tsx
+++ b/utils/components/Slider.tsx
@@ -9,6 +9,7 @@ function Dot({ index, children }: {
data-dot={index}
aria-label={`go to slider item ${index}`}
class="focus:outline-none group"
+ type="button"
>
{children}
diff --git a/vtex/loaders/intelligentSearch/productList.ts b/vtex/loaders/intelligentSearch/productList.ts
index a7fc4ffa6..221ac1bdb 100644
--- a/vtex/loaders/intelligentSearch/productList.ts
+++ b/vtex/loaders/intelligentSearch/productList.ts
@@ -47,7 +47,7 @@ export interface FacetsProps extends CommonProps {
* @description query to use on search
* @examples "shoes"\n"blue shoes"
*/
- query: string;
+ query?: string;
/**
* @title Facets string
* @description (e.g.: 'catergory-1/moda-feminina/category-2/calcados')
@@ -296,9 +296,10 @@ export const cacheKey = (
(expandedProps as unknown as Props["props"]);
const url = new URL(req.url);
+
if (
- url.searchParams.has("q") ||
- ctx.isInvoke && isProductIDList(props)
+ // Avoid cache on loader call over call and on search pages
+ (!isQueryList(props) && url.searchParams.has("q")) || ctx.isInvoke
) {
return null;
}
diff --git a/vtex/loaders/legacy/productList.ts b/vtex/loaders/legacy/productList.ts
index 9e0ec4488..97ce53647 100644
--- a/vtex/loaders/legacy/productList.ts
+++ b/vtex/loaders/legacy/productList.ts
@@ -287,9 +287,8 @@ export const cacheKey = (
const url = new URL(req.url);
if (
- url.searchParams.has("q") ||
- // loader is invoked directly should not vary
- ctx.isInvoke && (isSKUIDProps(props) || isProductIDProps(props))
+ // Avoid cache on loader call over call and on search pages
+ (!isTermProps(props) && url.searchParams.has("q")) || ctx.isInvoke
) {
return null;
}
diff --git a/vtex/preview/Preview.tsx b/vtex/preview/Preview.tsx
index f55347d71..495549ca9 100644
--- a/vtex/preview/Preview.tsx
+++ b/vtex/preview/Preview.tsx
@@ -66,7 +66,10 @@ export function Indexing() {
name="props"
value="eyJrZXkiOiJ2dGV4L3dvcmtmbG93cy9wcm9kdWN0L2luZGV4LnRzIn0"
/>
-