HooksIdentity & auth
useCapxulDestination
Derive the canonical destination from identity state.
useCapxulDestination() returns the Core SDK destination descriptor or null
while account truth is unresolved. Equal descriptors retain their object
identity across unrelated transitions.
import { useCapxulDestination } from "@capxul/sdk-react";
function Destination() {
const destination = useCapxulDestination();
return <pre>{JSON.stringify(destination)}</pre>;
}The consuming app maps descriptors to routes; the SDK owns no route names.