@dialstack/sdk / react / UseLastError
Interface: UseLastError
Defined in: sdk/src/react/softphone/hooks/useLastError.ts:8
Properties
clearError
clearError: () => void;
Defined in: sdk/src/react/softphone/hooks/useLastError.ts:17
Dismiss the current error.
Returns
void
handleError
handleError: (event) => void;
Defined in: sdk/src/react/softphone/hooks/useLastError.ts:15
Error handler to pass into useCalls/useCallActions. It forwards to the
host's onError AND stores the error locally so the built-in UI can show it.
Parameters
event
Returns
void
lastError
lastError: SoftphoneError | null;
Defined in: sdk/src/react/softphone/hooks/useLastError.ts:10
The last error surfaced to the user, or null. Drives the built-in banner.