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

docs(useRequest): add refreshDepsAction options and update demo #2334

Merged
merged 4 commits into from Sep 27, 2023

Conversation

liuyib
Copy link
Collaborator

@liuyib liuyib commented Sep 26, 2023

[中文版模板 / Chinese template]

🤔 This is a ...

close: #2300

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

@@ -1,45 +1,34 @@
import React, { useState } from 'react';
import Mock from 'mockjs';
import { useRequest } from 'ahooks';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

旧的 demo 体现不出默认的依赖刷新行为,所以重写了一个

@crazylxr crazylxr merged commit 6f47ac4 into master Sep 27, 2023
15 checks passed
@crazylxr crazylxr deleted the docs_useRequest_refreshDeps branch September 27, 2023 08:59
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 在使用 refreshDeps 时把传入函数的参数也缓存下来了
2 participants