webtides / element-js

Simple and lightweight base classes for web components with a beautiful API
MIT License
26 stars 3 forks source link

Dependency Injection via Context Protocol #70

Closed quarkus closed 1 year ago

quarkus commented 2 years ago

We should probably come up with some sort of idea of Dependency Injection to reduce the amount of prop drilling. A good use case could be to share some sort of runtime created store with children.

We should probably create the feature by implementing this pattern / protocol: context