Open DrSensor opened 1 year ago
Shortcut to create a new Controller for specific iteration
const ctl = new iterate
.for(Counter, (index, {count}) => { ... })
The controller is persisted and you need to explicitly ctl.run()
the iteration as many times as you want.
@iterate.for
and@iterate.for(Class/module-path)
decoratoriterate.for(Class/module-path, async (index, {...accessors}) => {}, [max,min]?)
iterate.current.index
anditerate.current.length
iterate.skip
,iterate.skip(index)
,iterate.skip(...accessors)
to skip render upateiterate.stop
to stop iterationawait iterate.resume
anditerate.resume()
which similar toyield
and.next()
snapshot(Class/module-path)
return copy of databank accessor