TinyBase logoTinyBase β

useRelationships

The useRelationships hook returns the default Relationships object from the current Provider context (or a named one if an Id is provided).

useRelationships(id?: string): Relationships | undefined
TypeDescription
id?string

An optional Id of a named Relationships object in the Provider context.

returnsRelationships | undefined

The Relationships object, or undefined if not found.

Since

v8.1.0