In any case, an extension should support GraphQL. Of course, an extension could choose to support only the most popular one(s). However, it is quite a task to supply a Magento extension with frontend support for all those different frontends: Perhaps a React component could be used for DEITY, FrontCommerce and PWA Studio, but a Vue component would be needed for Vue Storefront, an Alpine/Tailwind adoptation for Hyva Themes, etcetera. And therefore, extension should add support for this. Yes, there is still the Luma theme with its Knockout and RequireJS usage, but it is to be deprecated, difficult to extend and bad for performance. There no longer is a single frontend, there are numerous. How to modern-day extensions support modern-day storefrontsįor Magento extensions that alter the behaviour of the Magento frontend, the situation has changed. In short, modern-day storefronts rely upon GraphQL. And Vue Storefront supports GraphQL as well: With v1, this involves a switch to swap ElasticSearch for GraphQL and with Next, this is part of the connector architecture. Other PWA providers like DEITY and FrontCommerce are using GraphQL as well, while actually relying more upon their own GraphQL endpoints. And it also uses GraphQL to communicate with the backend. Hyva Themes - using AlpineJS and TailwindCSS - is not a headless solution, but rather an alternative frontend for Luma. And this React app is connecting to Magento by using GraphQL. To proof this headless concept is working, Magento is working on a Magento PWA Studio - a toolbox with developer aids to let developers build their own React-based app. Magento goes headless and this has everything to do with GraphQL. And this GraphQL API is able to act as the glue between a headless storefront and the Magento backend system. The main reason why Magento extensions need to support GraphQL has to do with the fact that Magento 2.3.0 introduced a GraphQL API which slowly got expanded upon with other versions. Magento 2 goes headless thanks to GraphQL Perhaps you are familiar with this point and you agree it. Magento extensions need to support GraphQL.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |