WS Debugging
This commit is contained in:
@@ -51,6 +51,15 @@ const main = Effect.gen(function*() {
|
||||
const mode = yield* ServerConfig.mode
|
||||
const todos = yield* TodoRepository
|
||||
|
||||
// yield* Effect.fork(
|
||||
// todos.todos.changes.pipe(
|
||||
// Stream.runForEach(values => Effect.gen(function*() {
|
||||
// yield* Console.log("Todos updated:")
|
||||
// yield* Console.log(values)
|
||||
// }))
|
||||
// )
|
||||
// )
|
||||
|
||||
yield* todos.add(new Todo({
|
||||
id: Option.none(),
|
||||
order: 0,
|
||||
|
||||
Reference in New Issue
Block a user