79411127

Date: 2025-02-04 09:15:29
Score: 1
Natty:
Report link

I guess you should add loading state while the component is loading

For example :

const Component = dynamic(() => import(`@/components/admin/tabs/${compName}.js`), {
  ssr: false,
  loading: () => <div>Loading...</div>
});

Or use:

if (!data) return <div>Loading...</div>;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hamza Essolami