Significantly reduce the number of re-renders on the console page when stats are flowing
This commit is contained in:
parent
5fc4444f5a
commit
6b52a36b31
4 changed files with 148 additions and 110 deletions
|
@ -30,7 +30,7 @@ import StartupContainer from '@/components/server/startup/StartupContainer';
|
|||
import requireServerPermission from '@/hoc/requireServerPermission';
|
||||
|
||||
const ServerRouter = ({ match, location }: RouteComponentProps<{ id: string }>) => {
|
||||
const { rootAdmin } = useStoreState(state => state.user.data!);
|
||||
const rootAdmin = useStoreState(state => state.user.data!.rootAdmin);
|
||||
const [ error, setError ] = useState('');
|
||||
const [ installing, setInstalling ] = useState(false);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue