ant-design / ant-design-examples

Use antd in create-next-app
67 stars 38 forks source link

AppRouter模式好像还不行? #10

Closed Issho-lin closed 1 year ago

Tongyaoyu commented 1 year ago

同问app router模式该怎么处理

Kaempy commented 1 year ago

How do I configure Ant Design with the new App Directory in NextJs 13

Hello, Please how do I configure ant design initialization and setup in the new and recommended NextJs 13 app directory and also how do I prevent UI shift on first render in the new NextJs13 app directory.

conioX commented 1 year ago

can we have official implementation with app router

jin-benben commented 1 year ago

mark

TLovers commented 1 year ago

APP路由怎么自定义主题啊 ,按照官网https://ant-design.antgroup.com/docs/react/customize-theme-cn#%E6%9C%8D%E5%8A%A1%E7%AB%AF%E6%B8%B2%E6%9F%93 生成css 后自定义的主题还是无效的啊

MadCcc commented 1 year ago

Supported after antd@5.7.1 https://github.com/ant-design/ant-design-examples/blob/main/examples/with-nextjs-app-router-inline-style/src/app/page.tsx

Notice that because of check of nextjs, sub component used with dot still need declare 'use client' in page.

Sherryme commented 1 year ago

Supported after antd@5.7.1 https://github.com/ant-design/ant-design-examples/blob/main/examples/with-nextjs-app-router-inline-style/src/app/page.tsx

Notice that because of check of nextjs, sub component used with dot still need declare 'use client' in page.

I see it say I need to add use client if I use sub-components : https://github.com/ant-design/ant-design-examples/blob/main/examples/with-nextjs-app-router-inline-style/src/app/with-sub-components/page.tsx . but after I add it, how do I fetch data on the server? I asked at https://github.com/ant-design/ant-design-examples/issues/24