Fix
This commit is contained in:
@@ -25,7 +25,7 @@ export const todosRouter = Effect.gen(function*() {
|
|||||||
changes: procedure
|
changes: procedure
|
||||||
.subscription(({ ctx }) =>
|
.subscription(({ ctx }) =>
|
||||||
observable<readonly (typeof JsonifiableTodo.Encoded)[]>(emit => {
|
observable<readonly (typeof JsonifiableTodo.Encoded)[]>(emit => {
|
||||||
const watcher = Runtime.runFork(ctx.runtime)(Effect.gen(function*() {
|
const watcher = ctx.fork(Effect.gen(function*() {
|
||||||
const todos = yield* TodoRepository
|
const todos = yield* TodoRepository
|
||||||
|
|
||||||
yield* todos.todos.changes.pipe(
|
yield* todos.todos.changes.pipe(
|
||||||
|
|||||||
Reference in New Issue
Block a user