react-component / react-component/upload
upload request onTimeout
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 804
- Forks
- 323
- Avg merge
- 12m
- Merged PRs (30d)
- 1
Description
场景
在平常的上传业务中,会遇到请求超时的情况,在 src/request.js 目前也没有对timeout做处理
解决方案
- 可以在
src/request.js中考虑新增对timeout的处理 - 在customRequest中处理(现有的方案)
考虑到请求超时是个比较常见的情况,所以是否可以添加到默认的 request 中
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading src/request.js and comparing its request flow with the existing customRequest timeout handling. Clarify how the default request should respond when an upload times out and whether the behavior should match customRequest. Done means timeout handling is available in the default request path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- api, frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100