Skip to content

Commit

Permalink
feat: 支持 onError 获取 error 对象
Browse files Browse the repository at this point in the history
  • Loading branch information
czewail authored Oct 10, 2024
1 parent 5148dd6 commit 10bc43f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-framework-react/src/runtime/connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}

Expand Down

0 comments on commit 10bc43f

Please sign in to comment.