I'm trying to dynamically add a child node to a treeview, but adding a child node to the selected dataitem does not refresh the treeview.
When I inspect the dataitem that I add a child node to, it has that child node.
Interestingly remove works fine.
I created a stackblitz, so that you can see the problem I'm having.
Click the buttons I highlighted in the screenshot, and this will call onAddGroupClick() or onAddClick() where I'm adding a child node.
How can I make it so that the treeview understands that a node is added?
Below is the code.