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

[React18] 设置了 monitor={ture} 之后,页面卡死 #137

Open
nnmax opened this issue Feb 20, 2023 · 0 comments
Open

[React18] 设置了 monitor={ture} 之后,页面卡死 #137

nnmax opened this issue Feb 20, 2023 · 0 comments
Labels
🐛 Bug Something isn't working

Comments

@nnmax
Copy link

nnmax commented Feb 20, 2023

以前的Issues

#129 全局水印与其它遮罩层冲突

问题描述

  1. 升级为 React 18 后,页面会卡死。将 monitor 设置为 false 后正常;
  2. React 18 中的 React.FC 类型已经将 children 属性移除,希望在 WatermarkProps 中添加上 children,否则会报类型错误;

复现步骤

最小复现 Demo

环境详情

  • @pansy/watermark version: ^3.1.14
  • react version: ^18.2.0
  • react-dom version: ^18.2.0
  • typescript version: ^4.9.5
@nnmax nnmax added the 🐛 Bug Something isn't working label Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant