This commit is contained in:
Jade (Rose) Rowland 2025-11-23 18:45:13 -05:00
parent 6221099af8
commit d5dfbd7aa4
8 changed files with 54 additions and 59 deletions

View file

@ -84,9 +84,10 @@ export function useReplContext() {
pattern: silence,
drawTime,
drawContext,
prebake: async () => Promise.all([modulesLoading, presets,]).then(() => {
return evaluate(startupScript ?? '')
}),
prebake: async () =>
Promise.all([modulesLoading, presets]).then(() => {
return evaluate(startupScript ?? '');
}),
onUpdateState: (state) => {
setReplState({ ...state });
},
@ -202,7 +203,6 @@ export function useReplContext() {
}
};
const handleEvaluate = () => {
editorRef.current.evaluate();
};