mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-17 05:09:52 +03:00
use memo and callbacks for reduced rendering vis caching
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user