HooksIdentity & auth
useCapxulTransitions
Observe canonical identity transition records.
useCapxulTransitions(listener) subscribes to the S1 transition record stream.
The provider fans out one actor subscription and isolates a throwing listener.
import { entered, useCapxulTransitions } from "@capxul/sdk-react";
function Observer() {
useCapxulTransitions((record) => {
if (entered(record, "authenticated:claimed")) {
// App-owned reaction.
}
});
return null;
}entered is true only for an applied edge whose destination matches and whose
source differs.