Skip to main content
EndstateProvider constructs a single EndstatePublicClient for its lifetime and wires it to the browser tap sources. useEndstateClient returns that same instance, so you can reach any core API the other hooks do not wrap - a unit lookup, a manual captureTap, service info - without building a second client. Reach for useSession, useClaim, and the rest first; this is the escape hatch beneath them.

Example

Returns

EndstatePublicClient
The provider’s client, holding only the publishable key. The same instance the hooks dispatch through, so calls share its tap sources and configuration.

See also

EndstateProvider

Constructs and owns the client.

EndstatePublicClient

The client surface this hook returns.

createEndstateClient

Build the same client outside React.

useSession

The higher-level session state most pages want.