From c3a7d8114fe9705d354de49d967da6ceadef15dd Mon Sep 17 00:00:00 2001 From: Njeri Muguthi Date: Mon, 20 Jan 2025 14:45:00 +0000 Subject: [PATCH] Test useLocalizationMarket --- .changeset/slow-bugs-taste.md | 5 +++++ .../src/surfaces/customer-account/hooks/market.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/slow-bugs-taste.md diff --git a/.changeset/slow-bugs-taste.md b/.changeset/slow-bugs-taste.md new file mode 100644 index 0000000000..24d3c86a46 --- /dev/null +++ b/.changeset/slow-bugs-taste.md @@ -0,0 +1,5 @@ +--- +'@shopify/ui-extensions-react': patch +--- + +Testing app localization market diff --git a/packages/ui-extensions-react/src/surfaces/customer-account/hooks/market.ts b/packages/ui-extensions-react/src/surfaces/customer-account/hooks/market.ts index c48078f539..f6d8388eee 100644 --- a/packages/ui-extensions-react/src/surfaces/customer-account/hooks/market.ts +++ b/packages/ui-extensions-react/src/surfaces/customer-account/hooks/market.ts @@ -21,5 +21,7 @@ export function useLocalizationMarket< throw new ExtensionHasNoFieldError('market', extensionTarget); } + console.log('API.LOCALIZATION.MARKET', api.localization.market); + return useSubscription(api.localization.market); }