Change AppBridge default autoNotifyReady to true (#185)

* Change AppBridge default autoNotifyReady to true

* Add changeset
This commit is contained in:
Lukasz Ostrowski 2023-02-27 16:39:01 +01:00 committed by GitHub
parent 8beab201be
commit 9e22a49acc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -118,7 +118,7 @@ const getDefaultOptions = (): AppBridgeOptions => ({
targetDomain: getDomainFromUrl(),
saleorApiUrl: getSaleorApiUrlFromUrl(),
initialLocale: getLocaleFromUrl() ?? "en",
autoNotifyReady: false,
autoNotifyReady: true,
initialTheme: getThemeFromUrl() ?? undefined,
});