Skip to content

How to destroy a reference? #419

Description

@gbcreation

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions