-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix loading user and cart information (#6265)
* Fix loading user and cart information * Add changelogs
- Loading branch information
1 parent
8eef208
commit f20d9f9
Showing
5 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module.exports = { | ||
description: 'Fix loading user and cart information', | ||
link: 'https://github.com/vuestorefront/vue-storefront/pull/6265/', | ||
isBreaking: true, | ||
breakingChanges: [ | ||
{ | ||
module: 'Base theme', | ||
before: '`loadCart` was called directly inside `setup` method in `CartSidebar.vue` component', | ||
after: '`loadCart` is called inside `onSSR` callback in `CartSidebar.vue` component', | ||
comment: 'Calling `loadCart` directly inside `setup` method caused hydration issues, since cart information was not properly loaded during SSR' | ||
} | ||
], | ||
author: 'Filip Sobol', | ||
linkToGitHubAccount: 'https://github.com/filipsobol' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module.exports = { | ||
description: 'Fix loading user and cart information', | ||
link: 'https://github.com/vuestorefront/vue-storefront/pull/6265/', | ||
isBreaking: true, | ||
breakingChanges: [ | ||
{ | ||
module: 'commercetools theme', | ||
before: '`loadUser` was called directly inside `setup` method in `CartSidebar.vue` component', | ||
after: '`loadUser` is called inside `onSSR` callback in `CartSidebar.vue` component', | ||
comment: 'Calling `loadUser` directly inside `setup` method caused hydration issues, since cart information was not properly loaded during SSR. Additionally cart will now be automatically updated after calling `load` from the `useUser` composable, the same way as it happens when calling `logIn`, `logOut` and `register`.' | ||
} | ||
], | ||
author: 'Filip Sobol', | ||
linkToGitHubAccount: 'https://github.com/filipsobol' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters