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: add useMediaQuery #2455

Closed
wants to merge 2 commits into from
Closed

feat: add useMediaQuery #2455

wants to merge 2 commits into from

Conversation

mannix-lei
Copy link

@mannix-lei mannix-lei commented Jan 29, 2024

[中文版模板 / Chinese template]

🤔 This is a ...

  • 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

@crazylxr
Copy link
Collaborator

emm,这个 hook 我觉得还是可以添加进去的,不过你这个代码确实有待优化。

另外最重要的是 api 设计目前我不是很满意,真的需要支持数组么?另外 ahooks 是需要支持 SSR 的,也是需要考虑进去,建议你先提一个 RFC,先讨论一下 api 的设计和使用方式再提交代码

@mannix-lei mannix-lei closed this Sep 4, 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

Successfully merging this pull request may close these issues.

2 participants