Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[useRequest] React18 StrictMode下,数据共享不生效 #2591

Open
canvascat opened this issue Jul 10, 2024 · 1 comment
Open

[useRequest] React18 StrictMode下,数据共享不生效 #2591

canvascat opened this issue Jul 10, 2024 · 1 comment

Comments

@canvascat
Copy link

使用官方的demo,将react改为18并添加StrictMode

20240710100817_rec_

codesandbox

@zhengmenghuang
Copy link

需要加 staleTime: -1 才能缓存

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants