Home > @uniformdev/mesh-sdk-react > DelegationGate
DelegationGate() function
Renders children only when the delegation session is active. Shows appropriate fallback UI for loading, disabled, and error states.
Sensible defaults use the design system (loading overlay, callouts). Pass loadingComponent, or errorComponent to customize; pass null to render nothing for that state.
Signature:
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
{ children, loadingComponent, disabledComponent, errorComponent, } |
(not declared) | |
|
input |
Returns:
_emotion_react_jsx_runtime.JSX.Element | null