vuestorefront / vue-storefront-1

The open-source frontend for any eCommerce. Built with a PWA and headless approach, using a modern JS stack. We have custom integrations with Magento, commercetools, Shopware and Shopify and total coverage is just a matter of time. The API approach also allows you to merge VSF with any third-party tool like CMS, payment gateways or analytics. Newest updates: https://blog.vuestorefront.io. Always Open Source, MIT license.
https://www.vuestorefront.io
MIT License
19 stars 13 forks source link

Cms page state not populated when visiting directly #222

Closed bloodf closed 3 years ago

bloodf commented 3 years ago

From vue-storefront created by slri: vuestorefront/vue-storefront#5578

Description

Directly means it's not a vue-router route, you can also open the page and hard reload (Ctrl + Shift + R). This is about the page mixin CmsPage.js. This essentially watches for route change through vue-router, but if you directly visit the page the cms module's single action won't be dispatched, resulting in current being null.

Steps to reproduce the issue

Current behavior

Expected behavior

Version of Vue Storefront

Can you handle fixing this bug by yourself?

Which Release Cycle state this refers to? Info for developer. (doesn't apply to Next)

Pick one option.

Environment details

Additional information