alibaba / alibaba/hooks

[useRequest] 当通过 cacheKey 共享 promise 时,只有一个 loading 会变成 true,其余的 loading 还是 false

Open
#2,908 3 comments 1 reaction 2 assignees Claimed by @crazylxr View on GitHub
Dominant language
TypeScript
Stars
15k
Forks
2.8k
Avg merge
15h 7m
Merged PRs (30d)
2

Description

这三个元素是同一个组件,cacheKey 相同(在结束后同时显示了data),但只有第一个组件显示了 loading

https://github.com/user-attachments/assets/3037820b-0682-458e-bc0c-b12932a35019

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.