better draw cleanup + began reference tab

This commit is contained in:
Felix Roos
2022-11-13 14:50:48 +01:00
parent 8f31fbe275
commit c92cb1c096
9 changed files with 178 additions and 127 deletions
+2 -1
View File
@@ -107,7 +107,7 @@ export const AppContext = createContext();
function App() {
const [view, setView] = useState(); // codemirror view
const [lastShared, setLastShared] = useState();
const [activeFooter, setActiveFooter] = useState('console');
const [activeFooter, setActiveFooter] = useState('');
const { code, setCode, scheduler, evaluate, activateCode, isDirty, activeCode, pattern, started, stop } = useStrudel({
initialCode: '// LOADING',
@@ -118,6 +118,7 @@ function App() {
cleanupUi();
cleanupDraw();
},
onToggle: (play) => !play && cleanupDraw(false),
});
// init code