diff --git a/.changeset/sharp-yaks-rush.md b/.changeset/sharp-yaks-rush.md new file mode 100644 index 0000000..af25e65 --- /dev/null +++ b/.changeset/sharp-yaks-rush.md @@ -0,0 +1,7 @@ +--- +"@saleor/app-sdk": minor +--- + +Change default behaviour of autoNotifyReady option in AppBridge constructor to be "true" + +This behavior is required by dashboard to send token in handshake in the response diff --git a/src/app-bridge/app-bridge.ts b/src/app-bridge/app-bridge.ts index 3494f98..5db0bad 100644 --- a/src/app-bridge/app-bridge.ts +++ b/src/app-bridge/app-bridge.ts @@ -118,7 +118,7 @@ const getDefaultOptions = (): AppBridgeOptions => ({ targetDomain: getDomainFromUrl(), saleorApiUrl: getSaleorApiUrlFromUrl(), initialLocale: getLocaleFromUrl() ?? "en", - autoNotifyReady: false, + autoNotifyReady: true, initialTheme: getThemeFromUrl() ?? undefined, });