useRequest在用快捷键恢复打开的标签页时,默认情况下返回了之前请求的缓存
Open
- Dominant language
- TypeScript
- Stars
- 15k
- Forks
- 2.8k
- Avg merge
- 15h 7m
- Merged PRs (30d)
- 2
Description
useRequest在用快捷键恢复打开的标签页时,默认情况下返回了之前请求的缓存
环境:mac M3
浏览器版本:版本 137.0.7151.70(正式版本) (arm64)
ahooks版本:3.8.4
快捷键恢复标签页:comman + shift + t
useRequest(get请求, onSuccess: () => {})
Contributor guide
Research direction
The report names useRequest and a GET request with onSuccess, but no source file or test is identified. Start by reproducing the behavior after restoring a tab with Command+Shift+T, then trace useRequest's cache handling. Done means the restored tab does not return the previous request cache by default and the behavior is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100