From 1d6708b0f034d3e9fbddc20247a281856350fc6c Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 29 Oct 2022 20:52:48 +0300 Subject: Disable Suspense/lazy import to fix SSR --- vnext/src/index.js | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) (limited to 'vnext/src/index.js') diff --git a/vnext/src/index.js b/vnext/src/index.js index 9f9fa4a3..59365d37 100644 --- a/vnext/src/index.js +++ b/vnext/src/index.js @@ -1,29 +1,20 @@ -import { StrictMode, lazy, Suspense } from 'react'; +import { StrictMode } from 'react'; import { hydrateRoot } from 'react-dom/client'; import { BrowserRouter } from 'react-router-dom'; import { CookiesProvider } from 'react-cookie'; import './index.css'; +import Juick from './App'; -function LoadingView() { - return ( -
-
-
- ); -} - -const Juick = lazy(() => import('./App')); +const props = window.__PROPS__ ? JSON.parse(window.atob(window.__PROPS__)) : {}; const JuickApp = () => ( - - - - - - - + + + + + ); -- cgit v1.2.3