Update Treeview to use entity relations#675
Conversation
|
| const { rootNodes, nodeMap } = $derived.by(() => { | ||
| // This ensures the tree rebuilds when frame parent relationships change | ||
| // eslint-disable-next-line @typescript-eslint/no-unused-expressions | ||
| frames.current |
There was a problem hiding this comment.
Removes the dependency of frames for rebuilding the tree. Tree rebuilds should now be exactly based on entity changes. More performant + fewer edge case bugs.
There was a problem hiding this comment.
@vijayvuyyuru FYI since you encountered this bug
|
This PR removes a lot of custom tree building behavior in favor of just walking the new Koota relations among entities.