StoresynkCollectionProps
Defined in: @storesynk/next/dist/components/StoresynkCollection.d.ts:22
Server-rendered ss-adopt so the client engine adopts the state
instead of refetching.
Pass state (parseListingParams over the route’s searchParams) to
server-render FILTERED/sorted/paged shared links too - the engine adopts any
state that matches its own URL read. Without state, the default view is
rendered and URL-carried state hydrates by fetching.
Falls back to plain client-side rendering when the fetch fails or the region has no usable product-list template. Children must be static host elements (see StoresynkProduct).
Properties
Section titled “Properties”allHandle?
Section titled “allHandle?”
optionalallHandle?:string
Defined in: @storesynk/next/dist/components/StoresynkCollection.d.ts:26
When handle is omitted: query this real collection instead of the catalog search.
children
Section titled “children”children:
ReactNode
Defined in: @storesynk/next/dist/components/StoresynkCollection.d.ts:47
className?
Section titled “className?”
optionalclassName?:string
Defined in: @storesynk/next/dist/components/StoresynkCollection.d.ts:46
fresh?
Section titled “fresh?”
optionalfresh?:boolean
Defined in: @storesynk/next/dist/components/StoresynkCollection.d.ts:45
Bypass the persistent cache and fetch live, deduped per request (see StoresynkList).
handle?
Section titled “handle?”
optionalhandle?:string
Defined in: @storesynk/next/dist/components/StoresynkCollection.d.ts:24
Collection handle. Omit for the whole catalog (the engine’s catalog mode).
infinite?
Section titled “infinite?”
optionalinfinite?:boolean
Defined in: @storesynk/next/dist/components/StoresynkCollection.d.ts:33
Auto-load the next page near the bottom instead of a
locale?
Section titled “locale?”
optionallocale?:I18nState|null
Defined in: @storesynk/next/dist/components/StoresynkCollection.d.ts:43
Per-request buyer market (from getRequestLocale()); null-safe.
noUrlSync?
Section titled “noUrlSync?”
optionalnoUrlSync?:boolean
Defined in: @storesynk/next/dist/components/StoresynkCollection.d.ts:34
pageSize?
Section titled “pageSize?”
optionalpageSize?:number
Defined in: @storesynk/next/dist/components/StoresynkCollection.d.ts:28
Products per page (the engine’s page-size).
revalidate?
Section titled “revalidate?”
optionalrevalidate?:boolean
Defined in: @storesynk/next/dist/components/StoresynkCollection.d.ts:41
After adopting, silently re-check the listing in the background and repaint only on drift - the freshness backstop for long-lived cached renders (same contract as StoresynkProduct’s revalidate).
reverse?
Section titled “reverse?”
optionalreverse?:boolean
Defined in: @storesynk/next/dist/components/StoresynkCollection.d.ts:31
sortKey?
Section titled “sortKey?”
optionalsortKey?:string
Defined in: @storesynk/next/dist/components/StoresynkCollection.d.ts:30
Initial sort (sort-key), e.g. “PRICE”; catalog mode only supports RELEVANCE/PRICE.
state?
Section titled “state?”
optionalstate?:ListingSearchState|null
Defined in: @storesynk/next/dist/components/StoresynkCollection.d.ts:37
The route’s listing URL state (filters/sort/page), from parseListingParams.
urlKey?
Section titled “urlKey?”
optionalurlKey?:string
Defined in: @storesynk/next/dist/components/StoresynkCollection.d.ts:35