-
-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
[Nextjs] cssinjs flicker in streaming mode #46533
Comments
Screen.Recording.2023-12-19.at.12.31.13.mov |
The bug was also mentioned in #45955 if anyone wants a workaround |
- "@ant-design/cssinjs": "1.17.2"
+ "@ant-design/cssinjs": "^1.17.2" DO NOT lock cssinjs version, it will cause multiple instances. |
@MadCcc sorry to bother you I have updated the repo to have the same (and latest ) version of cssinjs but the bug is still there |
The issue seems to be related with deduplication logic copied from getting stared guide: // avoid duplicate css insert
if (isServerInserted.current) {
return;
} I would expect it to use cache to detect if anything was changed and what css should be added when streaming |
Reproduction link
https://github.com/infodusha/antd-next-streaming-issue
Steps to reproduce
Have a streamed page with timeout, that you directly navigate, and you already rendered some styles before the streaming
What is expected?
There is no flicker
What is actually happening?
There is a flicker when page is loaded directly.
The text was updated successfully, but these errors were encountered: