@dialstack/sdk / react / useLastError
Function: useLastError()
function useLastError(onError?): UseLastError;
Defined in: sdk/src/react/softphone/hooks/useLastError.ts:26
Owns the softphone's "last error" state, shared by the web and RN providers so
the error-surfacing behavior can't drift between platforms (the same reason
shouldRingIncoming was extracted). Wraps the host onError: it still fires for
the host, and the error is also kept locally for the built-in error banner.
Parameters
onError?
(event) => void