From ea8aabceedd299f0ec006527c4f184d26d42615d Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Fri, 29 Dec 2023 15:03:26 +0100 Subject: [PATCH] fix: loader --- packages/core/repl.mjs | 2 +- website/src/repl/Repl.jsx | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/core/repl.mjs b/packages/core/repl.mjs index b3c7a543..9fb6b4b9 100644 --- a/packages/core/repl.mjs +++ b/packages/core/repl.mjs @@ -26,7 +26,7 @@ export function repl({ pattern: undefined, miniLocations: [], widgets: [], - pending: true, + pending: false, started: false, }; diff --git a/website/src/repl/Repl.jsx b/website/src/repl/Repl.jsx index 44903267..c5f69c8e 100644 --- a/website/src/repl/Repl.jsx +++ b/website/src/repl/Repl.jsx @@ -101,7 +101,7 @@ export function Repl({ embedded = false }) { }, []); const [replState, setReplState] = useState({}); - const { started, isDirty, error, activeCode } = replState; + const { started, isDirty, error, activeCode, pending } = replState; const editorRef = useRef(); const containerRef = useRef(); @@ -150,8 +150,6 @@ export function Repl({ embedded = false }) { }; const handleShare = async () => shareCode(activeCode); - const pending = false; - const context = { embedded, started,