parseMetafield utility creates a new metafield object with a value that has been parsed according to the metafield type.
Example codeAnchor link to section titled "Example code"
You can also wrap
useMemo() to maintain a stable object identity across renders.
This hook takes a single object with the following key:
Return typeAnchor link to section titled "Return type"
This hook returns an array of metafields whose
values have been parsed according to the metafield
type. For details on the parsed value, refer to the