nextjs 页面闪烁问题
Open
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.2k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 2
Description
1,第一版使用vite+ant design x 没有出现页面首屏闪烁问题
第一版本源码和部署地址
https://github.com/litongjava/ai-translator-frontend
https://translate.mycounsellor.ai/
第二版本使用nextjs+ant deisgn x 重写
源码地址
https://github.com/litongjava/my-get-frontend/blob/singlefile/src/components/chat.tsx
1.已经抽取antd.min.css并import
2.已经导入了reset.css
3.已经使用了AntdRegistry
```
import "./antd.min.css"
import 'antd/dist/reset.css'; // Updated path for v5+
import {AntdRegistry} from "@ant-design/nextjs-registry";
```
但是首页加载时还是会出现轻微的抖动.
https://github.com/user-attachments/assets/7ad0c5cf-395e-49db-81f3-48bc77719904
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.