fixes mini repl
This commit is contained in:
parent
aef7f7bbc2
commit
b7a61cbd99
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ function useRepl({ tune, defaultSynth, autolink = true, onEvent, onDraw }: any)
|
||||||
[pattern]
|
[pattern]
|
||||||
),
|
),
|
||||||
onSchedule: useCallback((_events, cycle) => logCycle(_events, cycle), [pattern]),
|
onSchedule: useCallback((_events, cycle) => logCycle(_events, cycle), [pattern]),
|
||||||
ready: !!pattern,
|
ready: !!pattern && !!activeCode,
|
||||||
});
|
});
|
||||||
|
|
||||||
const broadcast = usePostMessage(({ data: { from, type } }) => {
|
const broadcast = usePostMessage(({ data: { from, type } }) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue