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

[Notification] 全局通知组件在 React 19.0.0 中无法使用 #3378

Open
laolarou726 opened this issue Feb 20, 2025 · 2 comments
Open

[Notification] 全局通知组件在 React 19.0.0 中无法使用 #3378

laolarou726 opened this issue Feb 20, 2025 · 2 comments
Labels
react19 to be published fixed, not be published

Comments

@laolarou726
Copy link

tdesign-react 版本

v1.11.0

重现链接

No response

重现步骤

发送任意一个通知:

NotificationPlugin.error({
        title: : "title",
        content: "content",
        placement: "top-right",
        duration: 3000,
        offset: [-36, "5rem"],
        closeBtn: true,
        attach: () => document
    }).then(() => {});

期望结果

通知应该显示

实际结果

通知无法显示,console 输出下面的错误

Uncaught (in promise) TypeError: reactRender is not a function
    at legacyRender (extends.js:61:3)
    at render (extends.js:70:3)
    at idle (defaultProps.ts:148:9)
    at defaultProps.ts:165:10
    at new Promise (<anonymous>)
    at fetchListInstance2 (defaultProps.ts:139:3)
    at renderNotification3 (css.js:61:10)
    at NotificationPlugin.error (css.js:68:41)
    at Home (Home.tsx:55:24)
    at react-stack-bottom-frame (react-dom-client.development.js:22428:20)

框架版本

React 19.0.0

浏览器版本

Edge 133.0.3065.69

系统版本

Windows 24H2

Node版本

v22.14.0

补充说明

No response

Copy link
Contributor

👋 @laolarou726,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@uyarn uyarn added the react19 label Feb 21, 2025
@HaixingOoO
Copy link
Collaborator

已经在处理React19的问题

@uyarn uyarn added the to be published fixed, not be published label Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
react19 to be published fixed, not be published
Projects
None yet
Development

No branches or pull requests

3 participants