These are chat archives for reactioncommerce/reaction
replaceComponent("ProductsCustomer", ProductGrid, [ composeWithTracker(composer) ]);
@willmoss1000 something along the lines:
const hocs = getHOCs("ProductsCustomer") hocs = myHoc; replaceComponent("ProductsCustomer", MyComponent)
This would alter the first HOC of the component as well as the component itself
registerComponent. Would you guys consider this as bad practice?
registerComponent, I was implying I was keeping the same name to effectively replace it in the component "registry" or whatever you want to call it. Essentially using it as
replaceComponent, but passing your own HOCs to it.
replaceComponentWithHOCsmethod or something along those lines. It would basically be an alias for
registerComponentbut would clear things up a little on this topic.