Elin

Results 5 comments of Elin

> Hi [@xinnian999](https://github.com/xinnian999)! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the x team. > > 你遇到的闪烁(FOUC)问题,是因为 AntdRegistry 只会收集 antd 组件的样式,而不会自动收集 antd-x 组件的样式。antd-x 采用 cssinjs 方案,但目前没有像 AntdRegistry 这样的 SSR 样式收集器或注册器,所以 Next.js SSR 时...

> 你可以用 cssinjs 的 StyleProvider 和 extractStyle 手动收集 antd-x 的样式并注入到 SSR HTML,避免页面闪烁。核心思路是:每次 SSR 时创建一个独立的 style cache,包裹你的 App,然后在服务端渲染后用 extractStyle 拿到 CSS 字符串,插入到 HTML 的 。 > > 下面是 Next.js(App Router)集成 antd-x...

换成5.26.4了,但是没什么效果

> 在 @ant-design/[email protected] 尝试修复了下 Suspense 造成的 antd ssr 样式丢失问题,可以试下。 我在我这个项目里升级了v1.1.0版本,但还是没什么效果。。。