react-component / react-component/upload

upload request onTimeout

Open
#104 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
804
Forks
323
Avg merge
12m
Merged PRs (30d)
1

Description

场景

在平常的上传业务中,会遇到请求超时的情况,在 src/request.js 目前也没有对timeout做处理

解决方案
  1. 可以在 src/request.js 中考虑新增对timeout的处理
  2. 在customRequest中处理(现有的方案)

考虑到请求超时是个比较常见的情况,所以是否可以添加到默认的 request 中

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.