I am currently using Ant Design v5 and React v18 for my project.
Whenever I made changes to the code file and the page got auto re-render or I refresh (by clicking F5) on the current page, the Ant Design CSS file went missing. When I clicked back and return back to the same page, the CSS styles are back to normal again. Anyone encountered the same issue?
|----src
|------components
|------data
|------layouts
|-----------Layout.css
|-----------Layout.js
|-----------LoggedInLayout.js
|------router
|-----------index.js
|-----------AuthenticatedRoute.js
|------App.js
|------App.css
|------index.js
|------index.css
I’ve tried to manually import antd.css into my project, but Ant Design v5 does not require this step anymore. Tried installing react-refresh
as well, it does not work.