Skip to main content

Function: getRefsResolvingTo()

function getRefsResolvingTo<T>(
target,
refType?,
options?
): ObservableSet<Ref<T>>;

Gets all references that resolve to a given object.

Type Parameters​

Type ParameterDescription
T extends objectReferenced object type.

Parameters​

ParameterTypeDescription
targetTNode the references point to.
refType?RefConstructor<T>Pass it to filter by only references of a given type, or omit / pass undefined to get references of any type.
options?{ updateAllRefsIfNeeded?: boolean; }Options.
options.updateAllRefsIfNeeded?boolean-

Returns​

ObservableSet<Ref<T>>

An observable set with all reference objects that point to the given object.