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

Blinking Notification prompt when using "App" wrapper #48608

Open
Yukititit opened this issue Apr 24, 2024 · 3 comments
Open

Blinking Notification prompt when using "App" wrapper #48608

Yukititit opened this issue Apr 24, 2024 · 3 comments
Labels
🐛 Bug Ant Design Team had proved that this is a bug.

Comments

@Yukititit
Copy link

Yukititit commented Apr 24, 2024

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Using the "App" wrapper for the Notification prompt according to the documentation, new notification prompt blinks at first render if the count of notification prompt more then 2

What is expected?

Displaying the notification prompt without blinking

What is actually happening?

new notification prompt blinks at first render if the count of notification prompt more then 2

Environment Info
antd 5.16.4
React 18.x
System Window
Browser Chrome
@MadCcc MadCcc added 🐛 Bug Ant Design Team had proved that this is a bug. and removed unconfirmed labels Apr 24, 2024
@nova1751
Copy link
Contributor

nova1751 commented Apr 24, 2024

Seems to be rendering problem caused by using render function in React 18.
image

Check the example below, App wrapper works fine.

Edit on CodeSandbox

@BerekHalfhand
Copy link

Happens on react 17.0.2 as well. Noticed this problem after update 5.6.3 -> 5.16.4. Also had to fix styles that were changed for no apparent reason to look like shit. Thank you ant. Gonna downgrade now

@R3flector
Copy link

same problem with App and notifications

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug.
Projects
None yet
Development

No branches or pull requests

5 participants