It seems that just creating a new reference to a tree node is enough for getRefsResolvingTo() to return a Set with one Ref pointing to this tree node. My question is how can we destroy this ref?
In the Todo List example from the documentation about References, the reference to the selected Todo is somehow destroyed by setting selectedRef to undefined. But how to do that if the created Ref is not attached to a prop<Ref<Todo>> of an other model? It is possible to destroy directly the Ref itself?
It seems that just creating a new reference to a tree node is enough for
getRefsResolvingTo()to return a Set with one Ref pointing to this tree node. My question is how can we destroy this ref?In the Todo List example from the documentation about References, the reference to the selected Todo is somehow destroyed by setting
selectedReftoundefined. But how to do that if the created Ref is not attached to aprop<Ref<Todo>>of an other model? It is possible to destroy directly the Ref itself?