官网示例中,单独cacheKey缓存会失效
Open
- Dominant language
- TypeScript
- Stars
- 15k
- Forks
- 2.8k
- Avg merge
- 15h 7m
- Merged PRs (30d)
- 2
Description
https://ahooks.js.org/zh-CN/hooks/use-request/cache
https://ahooks.js.org/~demos/cache-cachekey/
这是符合预期的吗?
必须要配置staleTime=-1才可以么
Contributor guide
Research direction
Start by reading the linked use-request cache documentation and reproducing the behavior in the cache-cachekey demo. Compare the result with and without staleTime=-1, then establish whether the example matches the intended cacheKey behavior; done means the behavior is clarified and the documentation or demo is corrected if needed.
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
- 38/100