Alokai

A

Alokai

Join the community to ask questions about Alokai and get answers from other members.

Join

How to detect if a page has an error inside the layout

Inside the default layout I need to detect if there is an error page displayed (like for example a 404 page). How should I do this? I've tried doing this by accessing app.context._errored but this value is not refreshed after a client side navigation, so if we navigate from page with an error to a working page the value of this field remains the same. Is there an out of the box solution for that or we need to develop custom solution? And if we need to develop custom solution how should one go about it? Should we create a composable that will hold the error state and somehow update it when error layout is invoked? What would be the proper lifecycle hoot to update such variable?...

Contribution via a specific issue

Hello. I opened this issue (https://github.com/vuestorefront/vue-storefront/issues/6891). I work with magento platform and I am not sure if I had to open the issue in the vsf-nuxt2-magento2(https://github.com/vuestorefront/storefront-nuxt2-magento2) or in magento2 (https://github.com/vuestorefront/magento2) repository. I know the solution, but the only problem is the above which makes me confused. Could anyone help on that? PS: It's a case which will help and other devs who want to contribute......

Unable to change the color of the SFheader

unable to change the background-color of Sf header can someone please help

VSF Redis cache - dynamic parts will be disappeared after a while

Hi everybody, we have implemented redis cache with VSF project (SSR Cache), but we faced an issue, I just wanted to know if anyone else faced the same problem. When we call the page for the first time, everything is fine for a while... but after a while the content of the cached paged will be changed. (30 mins, or minutes, I do not know the exact amount, may be it's after an event)...

Can't we use REST Apis with Vue storefront

Is it necessary to use GraphQl in vuestorefront?

Weird url parameters

Hello 🙂 My Product Id seems whack or not VSF friendly. The are formatted as rest style urls: "gid://shopify/Product/8051870433578/-name" which in vuetools which returns 404. The correct and working product ID seems to be "8051870433578/-name"...

SSR Cache - default invalidation handler

As I saw the previous channel archived, so here we can continue discussion about cache.. @7s @Tautvydas Banys https://github.com/vuestorefront/vue-storefront/issues/6884 ...