Skip to main content

React hook guides

Each guide covers one hook: what it reads or changes, its arguments and result state, request behavior, and a typed React example.

Data hooks use the client provided by OvokProvider. Keep them in client-side components. The generated API reference linked from each guide documents the exact public types.

Notification hooks coordinate refreshes only among hooks using the same OvokClient instance. A successful note mutation does not refresh hooks under a different client, even if both clients use the same server and project. Share one client instance when those views should stay in sync, or call the other hook's reload() explicitly.

Hook guides​

Accounts and authentication​

  • useAcceptInvite — Accepts a pending invitation using the complete acceptance payload collected by your invite flow.
  • useChangeHistory — Reads a page of account change-history entries using the supplied query.
  • useInvitePatient — Sends an invitation for a patient using the shared typed invite payload.
  • useInvitePractitioner — Sends an invitation for a practitioner using the shared typed invite payload.
  • useLegalConsent — Loads legal-consent status for the authenticated account.
  • useMedicalConsent — Loads medical-consent status for the authenticated account.
  • useRepushUnconfirmedLimits — Requests another delivery attempt for limits that remain unconfirmed.
  • useSetLegalConsent — Updates legal-consent acceptance for the authenticated account.
  • useSetMedicalConsent — Updates medical-consent acceptance for the authenticated account.
  • useUnconfirmedLimits — Loads signal limits that have not been confirmed.

Signals and thresholds​

Project and API access​

Core and request state​

  • useClient — Returns the OvokClient instance provided by the nearest OvokProvider.
  • useOvokMutation — Wraps a typed OvokClient operation as an explicit stateful mutation.
  • useOvokRequest — Wraps an asynchronous loader with data, loading, error, and manual reload state.

CMS and localization​

Content and video​

Notifications​

Patient sharing​

Patient data and questionnaires​

Measurements and health data​

  • useEcgRecording — Loads and maps ECG observations into an ECG recording.
  • useObservations — Searches Observation resources and maps supported categories to typed measurements.
  • useSaveMeasurement — Saves a typed measurement through the configured client.
  • useUrineTests — Loads urine-analysis observations and maps them to typed urine measurements.

Remote monitoring​