TinyBase logoTinyBase

Relationships hooks

useLinkedRowIds

The useLinkedRowIds hook gets the linked Row Ids for a given Row in a linked list Relationship, and registers a listener so that any changes to that result will cause a re-render. Read more.

useLinkedRowIdsListener

The useLinkedRowIdsListener hook registers a listener function with the Relationships object that will be called whenever the linked Row Ids in a Relationship change. Read more.

useLocalRowIds

The useLocalRowIds hook gets the local Row Ids for a given remote Row in a Relationship, and registers a listener so that any changes to that result will cause a re-render. Read more.

useLocalRowIdsListener

The useLocalRowIdsListener hook registers a listener function with the Relationships object that will be called whenever the local Row Ids in a Relationship change. Read more.

useRemoteRowId

The useRemoteRowId hook gets the remote Row Id for a given local Row in a Relationship, and registers a listener so that any changes to that result will cause a re-render. Read more.

useRemoteRowIdListener

The useRemoteRowIdListener hook registers a listener function with the Relationships object that will be called whenever a remote Row Id in a Relationship changes. Read more.

useCreateRelationships

The useCreateRelationships hook is used to create a Relationships object within a React application with convenient memoization. Read more.

useRelationshipIds

The useRelationshipIds hook gets an array of the Relationship Ids registered with a Relationships object, and registers a listener so that any changes to that result will cause a re-render. Read more.

useRelationships

The useRelationships hook is used to get a reference to a Relationships object from within a Provider component context. Read more.

useRelationshipsIds

The useRelationshipsIds hook is used to retrieve the Ids of all the named Relationships objects present in the current Provider component context. Read more.

useRelationshipsOrRelationshipsById

The useRelationshipsOrRelationshipsById hook is used to get a reference to a Relationships object from within a Provider component context, or have it passed directly to this hook. Read more.