Skip to content

App metafield/metaobject namespace not working on the Shopify Editor, works okay in live. #2605

Open
@muchisx

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:

  1. Define a metafield in the Shop resource with an app reserved namespace. eg $app:my-app and whatever key+type+value.
  2. 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
  3. Analyze the payload in the editor and in the Live preview
  4. No problems in the live preview, metafield will be found.
  5. 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

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions