Skip to content

renderListItems

renderListItems(templateHtml, ctx): string | null

Defined in: .pnpm/@[email protected]_graphql@[email protected]_typescript@6.0.3/node_modules/@storesynk/core/dist/server/render-product-fragment.d.ts:117

Server-side twin of the ProductListBase engine: the fragment’s first element child is the item template; emits one filled clone per product, each with its adoption payload embedded as the first child of its . The client list engine sees the ss-adopt marker (set by the caller on the list host) and keeps these children instead of re-cloning.

Returns null when the fragment has no element child or the template contains no - the caller falls back to client-side rendering.

string

RenderListContext

string | null