This commit is contained in:
Joseph Garrone 2022-09-18 20:24:50 +02:00 committed by GitHub
parent 28d5fba430
commit 2e9615f32a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,10 +92,9 @@ mv src/KcApp/* src/
cat << EOF > src/index.tsx cat << EOF > src/index.tsx
import { createRoot } from "react-dom/client"; import { createRoot } from "react-dom/client";
import { StrictMode, lazy } from "react"; import { StrictMode } from "react";
import { kcContext } from "./kcContext"; import { kcContext } from "./kcContext";
import KcApp from "KcApp";
const KcApp = lazy(() => import("./KcApp"));
if( kcContext === undefined ){ if( kcContext === undefined ){
throw new Error( throw new Error(