vuestorefront / shopware-pwa

Shopware PWA for eCommerce. Headless storefront solution for Shopware 6, which communicates through the SalesChannel-API. Always Open Source, MIT license. Made with :blue_heart: by shopware AG & Vue Storefront.
https://frontends.shopware.com
MIT License
345 stars 103 forks source link

[Bug] Double-Click link CMS Page loading issue #1775

Open TheGoobsy opened 2 years ago

TheGoobsy commented 2 years ago

What happened?

My analysis so far

In the src/pages/_.vue file the values for the page, cmsPage. staticPage (...) refs are not correct after double-clicking a link when the setup() for the DynamicRoute component is being called, which leads to the wrong CMS Element being displayed. Using computed recognises the changes, but it breaks the product-listing and still often displays the wrong content, and also results in Elements loading multiple times.

It somehow does work correctly on https://shopware-pwa.storefrontcloud.io (Edit: Just tested it again, and it now happens every time I double click a link in the navigation), but I'm always getting this issue on my local shopware-pwa instance. I tried pwa v1.1.0 and v1.2.0, using my local shopware backend and also https://pwa-demo-api.shopware.com/trunk

Steps To Reproduce

Expected result:

Actual result:

Is there an existing issue for this?

Version

Latest stable (generated by CLI)

Which element is affected?

composables

Environment

- OS: Linux
- Node: 14.18.1
- Shopware API: 6.4.6.1
- Shopware PWA version: 1.2.0 and 1.1.0

Relevant log output

No response

TheGoobsy commented 2 years ago

Any updates on this issue? It affects our production server...

petritz commented 2 years ago

I have the same issue, any news on this issue? @mkucmus

TheGoobsy commented 1 year ago

Is there any chance that this issue will be resolved in the near future? :eyes: It's been over a year now...