Skip to content

[lit-labs/context] Providing an object #3685

Answered by vdegenne
joezappie asked this question in Q&A
Discussion options

You must be logged in to vote

@jrj2211 Hey,
Remember I said I would come back to you when I finish developing a solution I had in mind.
Well time has flew and I was quite busy but I remember this conversation so I am sharing this with you.
Here's the updated Playground.
I think you might be interested about it, I've managed to reduce the code to less than 90 lines, but it's not just about writing less, it's also about having a really easy way to manage states across your elements.

It's still a controller behind the scene, but a multi-host and reactive controller.
In the playground, you can see that all definition is made in the parent class app-container (binding the controller to all consumers in the first update met…

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@vdegenne
Comment options

@joezappie
Comment options

@joezappie
Comment options

@vdegenne
Comment options

Answer selected by joezappie
@joezappie
Comment options

@joezappie
Comment options

@vdegenne
Comment options

@joezappie
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants