0

I'm experiencing a styling issue in my application that uses Ant Design. While the application is in a loading state (e.g., during initial page load or lazy-loading of components), the Ant Design styles appear broken or not applied correctly. Once the application finishes loading, the styles are rendered properly.

Has anyone else encountered this problem? What are the best practices to ensure Ant Design styles are consistently applied, even during the loading phase?

1
  • Please provide enough code so others can better understand or reproduce the problem. Commented Apr 16 at 17:24

1 Answer 1

1

I guess the issue is with SSR, need to inject styles as soon as possible. Here is official manual from Next, depends on your router there are 2 different solutions. If you want - post here details what version of router you have and I will help you with code examples.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.