diff --git a/repl/src/App.jsx b/repl/src/App.jsx index 7e0c574a..24a9443f 100644 --- a/repl/src/App.jsx +++ b/repl/src/App.jsx @@ -109,7 +109,7 @@ const isEmbedded = window.location !== window.parent.location; function App() { const [view, setView] = useState(); // codemirror view const [lastShared, setLastShared] = useState(); - const [activeFooter, setActiveFooter] = useState('console'); + const [activeFooter, setActiveFooter] = useState('intro'); // logger const [log, setLog] = useState([]); @@ -139,7 +139,7 @@ function App() { // scroll log box to bottom when log changes footerContent.current.scrollTop = footerContent.current?.scrollHeight; } - }, [log]); + }, [log, activeFooter]); const { code, setCode, scheduler, evaluate, activateCode, error, isDirty, activeCode, pattern, started, stop } = useStrudel({ @@ -252,8 +252,8 @@ function App() {