@@ -6,7 +6,7 @@ import { SubscriptionSubRef } from "effect-fc/types"
|
|||||||
|
|
||||||
|
|
||||||
export class TodosState extends Effect.Service<TodosState>()("TodosState", {
|
export class TodosState extends Effect.Service<TodosState>()("TodosState", {
|
||||||
effect: Effect.fnUntraced(function*(key: string) {
|
effect: Effect.fn("TodosState")(function*(key: string) {
|
||||||
const kv = yield* KeyValueStore.KeyValueStore
|
const kv = yield* KeyValueStore.KeyValueStore
|
||||||
|
|
||||||
const readFromLocalStorage = Console.log("Reading todos from local storage...").pipe(
|
const readFromLocalStorage = Console.log("Reading todos from local storage...").pipe(
|
||||||
|
|||||||
Reference in New Issue
Block a user