use memo and callbacks for reduced rendering vis caching

This commit is contained in:
proddy
2025-10-25 15:21:59 +02:00
parent 7ece395d1b
commit 58ae058465
4 changed files with 41 additions and 25 deletions

View File

@@ -1,6 +1,8 @@
import { memo } from 'react';
import { Box, CircularProgress } from '@mui/material';
const LazyLoader = () => (
const LazyLoader = memo(() => (
<Box
display="flex"
justifyContent="center"
@@ -15,6 +17,6 @@ const LazyLoader = () => (
>
<CircularProgress size={40} />
</Box>
);
));
export default LazyLoader;