fix new things up to use state

This commit is contained in:
alex 2022-02-25 11:07:45 +00:00
parent 1b6d3734cf
commit fc739d1283
2 changed files with 3 additions and 3 deletions

View file

@ -726,7 +726,7 @@ function steady(value) {
}
export const signal = func => {
const query = span => [new Hap(undefined, span, func(span.midpoint()))]
const query = state => [new Hap(undefined, state.span, func(state.span.midpoint()))]
return new Pattern(query)
}