operators
import { Operator, mutate } from 'overmind'
export const changeFoo: <T>() => Operator<T> = () =>
mutate(({ state }) => {
state.foo = 'bar'
})import { Operator, pipe, debounce } from 'overmind'
import { QueryResult } from './state'
import * as o from './operators'
export const search: Operator<string> = pipe(
o.setQuery(),
o.filterValidQuery(),
debounce(200),
o.queryResult()
)catchError
debounce
filter
forEach
fork
map
mutate
noop
parallel
pipe
run
throttle
tryCatch
wait
waitUntil
when
Last updated