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 PointerToPrismProviderImplements: PointerToPrismProvider
Remarks
This allows reacting not just to value changes at a certain pointer, but changes to the proxied pointer too.
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(currentPointer) | Constructs a new instance of the PointerProxy class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| pointer | readonly | Pointer<O> | Convenience pointer pointing to the root of this PointerProxy. |
Methods
| Method | Modifiers | Description |
|---|---|---|
| pointerToPrism(pointer) | Returns a prism of the value at the provided sub-path of the proxied pointer. | |
| setPointer(p) | Sets the underlying pointer. |