1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

(nextjs) fixed getServerSideProps typings

This commit is contained in:
Fedor Katurov 2022-01-17 18:42:23 +07:00
parent 2d9d88f1a1
commit d9127e5b7c
4 changed files with 15 additions and 16 deletions

View file

@ -3,7 +3,7 @@ import { FlowStore } from '~/store/flow/FlowStore';
import { ModalStore } from '~/store/modal/ModalStore';
import { LabStore } from '~/store/lab/LabStore';
import { AuthStore } from '~/store/auth/AuthStore';
import { useStaticRendering } from 'mobx-react-lite';
import { enableStaticRendering, useStaticRendering } from 'mobx-react-lite';
export class Store {
flow = new FlowStore();
@ -24,5 +24,4 @@ const defaultStore = new Store();
export const getMOBXStore = () => defaultStore;
// eslint-disable-next-line react-hooks/rules-of-hooks
useStaticRendering(typeof window === 'undefined');
enableStaticRendering(typeof window === 'undefined');