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

feat(useRequest): add parameters trigger to the options[onBefore],add skipStaleTime in refreshOptions #2369

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

BastKakrolot
Copy link

@BastKakrolot BastKakrolot commented Nov 15, 2023

[English Template / 英文模板]

🤔 这个变动的性质是?

  • 新特性提交
  • 日常 bug 修复
  • 站点、文档改进
  • 演示代码改进
  • TypeScript 定义更新
  • 包体积优化
  • 性能优化
  • 功能增强
  • 国际化改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他改动(是关于什么的改动?)

🔗 相关 Issue

close: #2359
close: #2354

💡 需求背景和解决方案

用户可能不知道本次请求来源于哪个触发器,应该在回调中告知用户
请求 useRequest 的 refresh 支持忽略 staleTime

📝 更新日志

使用ts event直接绑定refresh时会提示类型错误

语言 更新描述
🇺🇸 英文 add parameters trigger to the options[onBefore],add skipStaleTime in refreshOptions
🇨🇳 中文 在onBefore参数中添加 trigger ,refresh 支持忽略 staleTime

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

@BastKakrolot BastKakrolot changed the title feat(useRequest): add parameters trigger to the options[onBefore] feat(useRequest): add parameters trigger to the options[onBefore],add skipStaleTime in refreshOptions Nov 16, 2023
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

Successfully merging this pull request may close these issues.

如何判断本次请求的真正触发原因 请求 useRequest 的 refresh 支持忽略 staleTime
1 participant