Skip to content

Conversation

@juho-jaakkola
Copy link

Related Issues

closes #4185

Short Description and Why It's Useful

The very first time something was added to the cart, the user did not see any messages
("Added to cart", "n items need to be backordered", etc). These were displayed only
on the following times. This commit fixes it so that the messages are displayed also
on the very first action call.

Which Environment This Relates To

Check your case. In case of any doubts please read about Release Cycle

  • Test version (https://test.storefrontcloud.io) - this is a new feature or improvement for Vue Storefront. I've created branch from develop branch and want to merge it back to develop
  • RC version (https://next.storefrontcloud.io) - this is a stabilisation fix for Release Candidate of Vue Storefront. I've created branch from release branch and want to merge it back to release
  • Stable version (https://demo.storefrontcloud.io) - this is an important fix for current stable version. I've created branch from hotfix or master branch and want to merge it back to hotfix

Upgrade Notes and Changelog

  • No upgrade steps required (100% backward compatibility and no breaking changes)
  • I've updated the Upgrade notes and Changelog on how to port existing Vue Storefront sites with this new feature

IMPORTANT NOTICE - Remember to update CHANGELOG.md with description of your change

Contribution and Currently Important Rules Acceptance

The very first time something was added to the cart, the user did not see any messages
("Added to cart", "n items need to be backordered", etc). These were displayed only
on the following times. This commit fixes it so that the messages are displayed also
on the very first action call.

See vuestorefront#4185
@gibkigonzo gibkigonzo requested a review from andrzejewsky March 23, 2020 14:34
const syncDiffLog = await dispatch('sync', { forceClientState: true })

if (!syncDiffLog.isEmpty()) {
diffLog.merge(syncDiffLog)
Copy link
Author

@juho-jaakkola juho-jaakkola Mar 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure that all these .merge() calls make sense, as I'm not that familiar with the cart implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants