mattwellss / mage-reactjs

ReactJS components rendered on your server with your Magento data!
MIT License
2 stars 0 forks source link

Component registry #2

Closed mattwellss closed 8 years ago

mattwellss commented 9 years ago

Current implementation embeds the JS template into the HTML just after the rendered one, which can result in significant duplication of code if many of the same template are used.

Proposal: A Mage_Core_Model_Layout-level owner of the rendered components, which bundles and renders them as a group.

Decision: Is the component bundle best served embedded into the HTML of the page or as a separate, cacheable bundle? IE Component Cart, ProductGrid, ProductGridProduct --> (hashed url)

mattwellss commented 8 years ago

Partially resolved by https://github.com/mattwellss/mage-reactjs/commit/7913ac3fba566d7e6e73f44ca1c34185fff6883b