mirror of
https://codeberg.org/uzu/strudel
synced 2026-09-07 23:30:45 -04:00
add patterns tab with examples
This commit is contained in:
@@ -73,8 +73,11 @@ function useStrudel({
|
||||
}
|
||||
});
|
||||
const activateCode = useCallback(
|
||||
async (autostart = true) => {
|
||||
const res = await evaluate(code, autostart);
|
||||
async (newCode, autostart = true) => {
|
||||
if (newCode) {
|
||||
setCode(code);
|
||||
}
|
||||
const res = await evaluate(newCode || code, autostart);
|
||||
broadcast({ type: 'start', from: id });
|
||||
return res;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user