diff --git a/packages/grafnode-run/src/pageComponents/Main/index.js b/packages/grafnode-run/src/pageComponents/Main/index.js index 740ce0a0..3aeaac73 100644 --- a/packages/grafnode-run/src/pageComponents/Main/index.js +++ b/packages/grafnode-run/src/pageComponents/Main/index.js @@ -33,11 +33,6 @@ import 'codemirror/addon/hint/show-hint.css'; const RequestTabPanel = dynamic(import('@grafnode/components').then(mod => mod.RequestTabPanel), { ssr: false }); export default function Main() { - // disable ssr - if(typeof window === 'undefined') { - return null; - } - const [state, dispatch] = useStore(); const { @@ -72,5 +67,6 @@ export default function Main() { - ) -} \ No newline at end of file + ); +}; + diff --git a/packages/grafnode-run/src/pages/_app.js b/packages/grafnode-run/src/pages/_app.js index 445558e4..30ee12fd 100644 --- a/packages/grafnode-run/src/pages/_app.js +++ b/packages/grafnode-run/src/pages/_app.js @@ -6,11 +6,21 @@ import 'react-tabs/style/react-tabs.css'; import 'codemirror/lib/codemirror.css'; import 'graphiql/graphiql.min.css'; +function SafeHydrate({ children }) { + return ( +