Count: {Result.getOrElse(count, () => 0)}
)
}
// Or you can define custom atoms using the `CountClient.runtime`
const incrementAtom = CountClient.runtime.fn(Effect.fnUntraced(function*() {
const client = yield* CountClient // Use the Tag to access the client
yield* client.counter.increment()
}))
// Or use it in your Effect services
class MyService extends Effect.Service