Polymer / pwa-helpers

Small helper methods or mixins to help you build web apps.
BSD 3-Clause "New" or "Revised" License
439 stars 48 forks source link

Context properties for webcomponents #26

Closed askbeka closed 6 years ago

askbeka commented 6 years ago

I have created a solution for passing down context in DOM, called it [wc-context], no packaging yet, its coming soon. In mean time want to get some feedback. There is a Redux demo with connect mixin implementation example. Thanks.

notwaldorf commented 6 years ago

This sounds very specific to webcomponents -- this repo is for small helpers that are generic to PWAs, and not necessarily web components. Passing down context between web components sounds like it might be suited better to a library, not to this repo.

askbeka commented 6 years ago

@notwaldorf But, connect-mixin.js, lazy-reducer-enhancer? Ok. This lib can help also build mixins for injecting reducers and sagas into components, making them lazy register in Redux store,

notwaldorf commented 6 years ago

Right, those help elements connect to another’s library, rather than offer an opinion about how elements should communicate with each other, which sounds like what you’ve built (which you didn’t link to, so I can’t tell). What I was trying to explain is that it’s not the job of these helpers to have strong architectural decisions for your application, but rather reduce the boilerplate you have to write in very general cases