Skip to content

Arbitrary composition of pre-allocated components #3694

Answered by MikeVaz
jonsecchis asked this question in Q&A
Discussion options

You must be logged in to vote

Well, it is just a tree component. The data seems to be organized more like a Graph. But you can try reflecting it in a tree. So it is all about the logic of your component and data you feed to it. Seem like a generic <tree-node> component you can feed a chunk of data.

You might be overthinking reusing containers. What is the purpose of that? Just create a duplicate so potential circular endless nesting would happen. But such examples already exist. Take Chrome Dev Tools and console there. But you would need to manually create a circle nested tree. And observe how Dev Tools handles that.

Lit itself is a general library so it won't have ready to use solutions for that. Just look for tree …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jonsecchis
Comment options

Answer selected by jonsecchis
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