Skip to content

Home > @unseenco/backstage-dataverse > PointerProxy

PointerProxy class

Allows creating pointer-prisms where the pointer can be switched out.

Signature:

typescript
export default class PointerProxy<O extends {}> implements PointerToPrismProvider

Implements: PointerToPrismProvider

Remarks

This allows reacting not just to value changes at a certain pointer, but changes to the proxied pointer too.

Constructors

ConstructorModifiersDescription
(constructor)(currentPointer)Constructs a new instance of the PointerProxy class

Properties

PropertyModifiersTypeDescription
pointerreadonlyPointer<O>Convenience pointer pointing to the root of this PointerProxy.

Methods

MethodModifiersDescription
pointerToPrism(pointer)Returns a prism of the value at the provided sub-path of the proxied pointer.
setPointer(p)Sets the underlying pointer.