---------------------- This issue might be related to the way Next.js and Ant Design are configured in your project. It's possible that the styles are not being properly applied during server-side rendering, which could cause a flash of unstyled content when the page is hard refreshed.
Additionally, you might want to check your file and ensure that it's properly set up. Here's an example of how it could look like:
```jsx import { Refine } from "@refinedev/core"; import routerProvider from "@refinedev/nextjs-router"; import dataProvider from "@refinedev/simple-rest"; import type { AppProps } from "next/app";
import { RefineThemes, ThemedLayoutV2, useNotificationProvider } from "@refinedev/antd"; import { App as AntdApp, ConfigProvider } from "antd";
Please note that this is just a general guide and you might need to adjust the code to fit your specific needs. If the issue persists, it might be a good idea to ask for help in the Refine Discord community(ask-any-questionApp 'flashes' dark mode before setting to light mode) or open an issue in the Refine GitHub repository(https://github.com/refinedev/refine/issues). ---------------------- Note: you can ask me a follow up question by @ mentioning me again ----------------------