Skip to main content

Interface: UseAddressOptions

Defined in: composables/react/useAddress.ts:64

Properties

companyId?

optional companyId?: number

Defined in: composables/react/useAddress.ts:74

Explicit company id; overrides the contact's company.companyId when resolving the address owner.


graphqlClient

graphqlClient: GraphQLClient | null | undefined

Defined in: composables/react/useAddress.ts:70

GraphQL client. Nullable so callers can invoke the hook unconditionally (Rules of Hooks) even when the client isn't ready yet — the CRUD methods bail with { success: false, error: 'No client' } until it is.


user

user: AnyUser | undefined

Defined in: composables/react/useAddress.ts:72

Authenticated user. Nullable for the same reason as graphqlClient.