Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
perf(ui): remove calling persisted stores in the root component. zust…
Browse files Browse the repository at this point in the history
…and restores them without it
  • Loading branch information
s-r-x committed May 17, 2021
1 parent 0f305a6 commit d5b3809
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/ui/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,20 @@
import React from 'react';
import Shell from '@/components/Shell';
import { QueryClient, QueryClientProvider } from 'react-query';
import { getMuiTheme, useThemeStore } from '@/stores/theme';
import { getMuiTheme } from '@/stores/theme';
import { MuiThemeProvider } from '@material-ui/core/styles';
import JobsScreen from '@/screens/jobs';
import { ConfirmProvider } from 'material-ui-confirm';
import { SnackbarProvider } from 'notistack';
import { NetworkProvider } from './providers/network';
import { useRunStoreSideEffects } from './stores/side-effects';
import { usePreferencesStore } from './stores/preferences';
import { useNetworkSettingsStore } from './stores/network-settings';
import { useQueuesFilterStore } from './stores/queues-filter';
import { QueuesQueryProvider } from './providers/queues-query';

const queryClient = new QueryClient();

export default function App() {
const muiTheme = getMuiTheme();
useRunStoreSideEffects();
usePreferencesStore();
useQueuesFilterStore();
useNetworkSettingsStore();
useThemeStore();
return (
<NetworkProvider>
<MuiThemeProvider theme={muiTheme}>
Expand Down

0 comments on commit d5b3809

Please sign in to comment.