After completing the Dev Dashboard mandatory migration, config-defined metafields aren’t accessible while the dev server is running via shopify app dev
. This is confirmed across ALL of my CLI-created apps.
The useAppMetafields()
method from the “@shopify/ui-extensions-react/checkout” library should be returning the list of metafields defined in my extension’s config file. It’s always empty during development, but works as intended in production versions of my apps.
Extension TOML file:
[[extensions.metafields]]
namespace = "myApp"
key = "onboardingKey"
Extension TypeScript file:
import { useAppMetafields } from "@shopify/ui-extensions-react/checkout";
const appMetafields = useAppMetafields();
console.dir(appMetafields);
This was NOT the case before completing the migration. Things were working correctly yesterday, and even this morning. So either this issue and the migration are related through unintended consequences of the migration, or it’s something else entirely.
This has made development through shopify app dev
unusable at the moment.
Any feedback or suggestions would be greatly appreciated. Thanks.