Reverted lazy load of StreamsTable

This commit is contained in:
Nick Sandstrom 2025-12-23 12:27:29 -08:00
parent 1029eb5b5c
commit 9c9cbab94c

View file

@ -1,7 +1,7 @@
import React, { lazy, Suspense } from 'react'; import React from 'react';
import ChannelsTable from '../components/tables/ChannelsTable'; import ChannelsTable from '../components/tables/ChannelsTable';
const StreamsTable = lazy(() => import('../components/tables/StreamsTable')); import StreamsTable from '../components/tables/StreamsTable';
import { Box, Text } from '@mantine/core'; import { Box, } from '@mantine/core';
import { Allotment } from 'allotment'; import { Allotment } from 'allotment';
import { USER_LEVELS } from '../constants'; import { USER_LEVELS } from '../constants';
import useAuthStore from '../store/auth'; import useAuthStore from '../store/auth';
@ -53,11 +53,7 @@ const PageContent = () => {
</Box> </Box>
<Box p={10} miw={'100px'} style={{ overflowX: 'auto' }}> <Box p={10} miw={'100px'} style={{ overflowX: 'auto' }}>
<Box miw={'600px'}> <Box miw={'600px'}>
<ErrorBoundary> <StreamsTable />
<Suspense fallback={<Text>Loading...</Text>}>
<StreamsTable />
</Suspense>
</ErrorBoundary>
</Box> </Box>
</Box> </Box>
</Allotment> </Allotment>