TinyBase logoTinyBase β

useLinkedRowIdsListener

The useLinkedRowIdsListener hook registers a listener that is called whenever the linked Row Ids for a first Row change.

useLinkedRowIdsListener(
  relationshipId: MaybeGetter<string>,
  firstRowId: MaybeGetter<string>,
  listener: LinkedRowIdsListener,
  relationshipsOrRelationshipsId?: MaybeGetter<undefined | RelationshipsOrRelationshipsId>,
): void
TypeDescription
relationshipIdMaybeGetter<string>

The Id of the Relationship.

firstRowIdMaybeGetter<string>

The Id of the first Row.

listenerLinkedRowIdsListener

The function to call when linked Row Ids change.

relationshipsOrRelationshipsId?MaybeGetter<undefined | RelationshipsOrRelationshipsId>

The Relationships object to use, or its Id.

returnsvoid

This has no return value.

Since

v8.1.0