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

去掉请求失败仍能放回上次的成功数据 #2422

Closed
OShuxin opened this issue Dec 23, 2023 · 5 comments
Closed

去掉请求失败仍能放回上次的成功数据 #2422

OShuxin opened this issue Dec 23, 2023 · 5 comments

Comments

@OShuxin
Copy link

OShuxin commented Dec 23, 2023

前面的请求成功,后面再次请求且失败时 为能将 data重置为undefined

@OShuxin
Copy link
Author

OShuxin commented Dec 23, 2023

是需要什么配置项么

@liuyib
Copy link
Collaborator

liuyib commented Dec 26, 2023

麻烦提供个可复现的在线 demo,或代码示例片段,感谢

@liuyib liuyib added the 🤔 Need Reproduce We cannot reproduce your problem label Dec 26, 2023
Copy link

Hello @OShuxin. Please provide a online reproduction by forking this link https://codesandbox.io/s/ok2fe or a minimal GitHub repository. Issues labeled by Need Reproduce will be closed if no activities in 3 days.

你好 @OShuxin, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。

@day-xue
Copy link

day-xue commented Dec 27, 2023

在onError 的时候 mutate(undefined)

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 31, 2023
@OShuxin
Copy link
Author

OShuxin commented Jan 2, 2024

是的 可以了 用mutate可以实现

@liuyib liuyib removed the 🤔 Need Reproduce We cannot reproduce your problem label Jan 8, 2024
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

3 participants