Hook for consistent error handling across the app.
Error handler function.
const handleError = useErrorHandler();// With custom messageonError: (error) => handleError(error, { fallbackMessage: t('my_error')});// With defaultsonError: handleError; Copy
const handleError = useErrorHandler();// With custom messageonError: (error) => handleError(error, { fallbackMessage: t('my_error')});// With defaultsonError: handleError;
Hook for consistent error handling across the app.