From 10bc43f170859cd4ff50c6b665748aef3cfde193 Mon Sep 17 00:00:00 2001 From: Zewail Date: Thu, 10 Oct 2024 15:04:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=20onError=20?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=20error=20=E5=AF=B9=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-framework-react/src/runtime/connect.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/taro-framework-react/src/runtime/connect.ts b/packages/taro-framework-react/src/runtime/connect.ts index 52f6ed6b76d..ea5df0a661c 100644 --- a/packages/taro-framework-react/src/runtime/connect.ts +++ b/packages/taro-framework-react/src/runtime/connect.ts @@ -117,7 +117,7 @@ export function connectReactPage ( } static getDerivedStateFromError (error: Error) { - Current.app?.onError?.(error.message + error.stack) + Current.app?.onError?.(error.message + error.stack, error) return { hasError: true } }