ant-design / ant-design/pro-components
🧐[问题] ProFormSelect的reauest函数里面遇到js报错,异常会被组件吃掉
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
### 🧐 问题描述
ProFormSelect 在"@ant-design/pro-components": "^2.4.4",版本配置了request函数,函数里面的异常会被组件内部吃掉,抛不出来,追了下,里面有try catch 然后没往外抛, 试了新版本 "@ant-design/pro-components": "^2.7.15",也存在同样问题
### 💻 示例代码
`
{
throw new Error('8888'); // 这里的异常不会被抛出
}}
/>
`
Contributor guide
Research direction
Start with the supplied ProFormSelect example and reproduce the thrown error in the request function using the reported @ant-design/pro-components versions. Trace the component's request handling, then verify that the exception is no longer silently swallowed and that the existing selection behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100