App metafield/metaobject namespace not working on the Shopify Editor, works okay in live. #2605
Open
Description
Please list the package(s) involved in the issue, and include the version you are using
"@shopify/ui-extensions": "2024.10.x",
"@shopify/ui-extensions-react": "2024.10.x",
Describe the bug
App-abreviated namespaces such as $app:my-app
work for requesting metafields/metaobjects in the live version of extensions, but not in the editor.
This is the case for both StorefrontApi and Customer Account Api (for customer acc extensions)
Steps to reproduce the behavior:
- Define a metafield in the Shop resource with an app reserved namespace. eg
$app:my-app
and whatever key+type+value. - In a checkout or customer account extension, request that metafield via the StorefrontApi or the CustomerAccount extensions using the app reserved namespace syntax from before
$app:my-app
- Analyze the payload in the editor and in the Live preview
- No problems in the live preview, metafield will be found.
- Problems in the editor, the metafield is not found, is
null
.
Expected behavior
App reserved namespaces should work both in the editor and in the live preview