We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.8.2
在服务端使用ahooks时,由于新增的useThemeAPI 以下代码使用了window变量,导致报错,需要考虑兼容服务端场景。
ahooks
useTheme
window
var matchMedia = window.matchMedia('(prefers-color-scheme: dark)');
The text was updated successfully, but these errors were encountered:
antd 会依赖 ahooks 的最新版本 导致使用 antd 也会报相同的错误 ant-design/ant-design-mobile#6791
Sorry, something went wrong.
3.8.4 已修复
Successfully merging a pull request may close this issue.
版本
3.8.2
问题
在服务端使用
ahooks
时,由于新增的useTheme
API 以下代码使用了window
变量,导致报错,需要考虑兼容服务端场景。The text was updated successfully, but these errors were encountered: