@@ -11,7 +11,7 @@ export function VTodos() {
|
|||||||
// Sync changes to the todos with the local storage
|
// Sync changes to the todos with the local storage
|
||||||
Reffuse.useFork(TodosState.TodosState.pipe(
|
Reffuse.useFork(TodosState.TodosState.pipe(
|
||||||
Effect.flatMap(state =>
|
Effect.flatMap(state =>
|
||||||
Stream.runForEach(state.todos, () => state.saveToLocalStorage)
|
Stream.runForEach(state.todos.changes, () => state.saveToLocalStorage)
|
||||||
)
|
)
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user