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,