TorHammare
How to handle Reactivity for nested objects?
I have a tree structure which i want to render and have reactive to changes. The tree is in its own file and should not be mixed into solidjs or jsx stuff. When calling
updateTree(node, id)
the tree will update from that node (including) and outward the branch, meaning all nodes after that node needs to be updated/rerenderd.
Below is some simplified example code.
Thank you
13 replies
Store for binary tree object
How should i use store to dynamically render content from my binary tree?
I plan to have different components/jsx-elements as value. I prefer not to edit the append function, by for example, call the setter given by createStore().
Perhaps I should look more into createEffect?
I've been looking at the API and tutorial but I'm not sure how to start. Other examples and links are appreciated
6 replies