Skip to content

PRODUCT_PAYLOAD_ATTR

const PRODUCT_PAYLOAD_ATTR: "data-storesynk-product" = "data-storesynk-product"

Defined in: .pnpm/@[email protected]_graphql@[email protected]_typescript@6.0.3/node_modules/@storesynk/core/dist/server/payload.d.ts:17

The adoption payload protocol. A server renderer embeds the raw product (and the shop) as inline JSON so the client runtime hydrates its state without re-fetching:

…server-filled markup…

The product payload is the RAW GraphQL shape (variants.nodes/media.nodes) so the client can feed it straight into provideProduct(raw) - normalization stays in one place. data-* (not ss-*) because these are embedded-data markers, not engine-set state attributes.