collectMetafieldIdentifiers
collectMetafieldIdentifiers(
html,opts?):object[]
Defined in: .pnpm/@[email protected]_graphql@[email protected]_typescript@6.0.3/node_modules/@storesynk/core/dist/server/render-product-fragment.d.ts:128
The metafield identifiers referenced by a fragment (deduped), so a server
renderer can batch-fetch exactly what the page displays - the same scan the
client’s _fetchMetafields does over the DOM, plus the bundles key
(list.metaobject_reference - PRODUCT_METAFIELDS resolves its metaobject
references) for each namespace attribute, else opts.appNamespace - the integration’s
configured app--<id> namespace). No namespace ⇒ the widget is skipped here
and stays a client-side widget, exactly as on a static page.
Parameters
Section titled “Parameters”string
appNamespace?
Section titled “appNamespace?”string
Returns
Section titled “Returns”object[]