Skip to content

Commit

Permalink
add partial-mode param
Browse files Browse the repository at this point in the history
  • Loading branch information
guitavano committed Mar 5, 2024
1 parent 04400d0 commit 9c68c1d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions components/product/ProductGallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ function ProductGallery(
if (pageInfo.nextPage) {
partialUrl?.searchParams.set("page", (pageInfo.currentPage + 1).toString());
partialUrl?.searchParams.set("partial", "true");
partialUrl?.searchParams.set("partial-mode", "append");
}

return (
Expand Down
4 changes: 2 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"imports": {
"$store/": "./",
"deco/": "https://denopkg.com/deco-cx/[email protected]/",
"deco/": "../deco/",
"apps/": "https://denopkg.com/deco-cx/[email protected]/",
"$fresh/": "https://deno.land/x/[email protected].3/",
"$fresh/": "https://deno.land/x/[email protected].5/",
"preact": "https://esm.sh/[email protected]",
"preact/": "https://esm.sh/[email protected]/",
"preact-render-to-string": "https://esm.sh/*[email protected]",
Expand Down
1 change: 0 additions & 1 deletion islands/ShowMore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { useEffect, useMemo } from "preact/hooks";
import type { ComponentChildren } from "preact";
import { useShowMore } from "$store/sdk/useShowMore.ts";
import { PageInfo } from "apps/commerce/types.ts";
import { scriptAsDataURI } from "apps/utils/dataURI.ts";

export interface Props {
children: ComponentChildren;
Expand Down
2 changes: 0 additions & 2 deletions sections/Product/SearchResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@ export function LoadingFallback() {
</div>
);
}

export const partialMode = "append";

0 comments on commit 9c68c1d

Please sign in to comment.