Add Effect v4 support, Fast Refresh tooling, and revamped docs #56

Merged
Thilawyn merged 133 commits from next into master 2026-07-26 02:32:59 +02:00
Showing only changes of commit fb4fd633dc - Show all commits
@@ -26,9 +26,7 @@ const AppStateSchema = Schema.Struct({
class AppState extends Context.Service<AppState, {
readonly lens: Lens.Lens<typeof AppStateSchema.Type>
}>()("AppState") {
static readonly layer = Layer.effect(
AppState,
Effect.gen(function*() {
static readonly layer = Layer.effect(AppState, Effect.gen(function*() {
return {
lens: Lens.fromSubscriptionRef(
yield* SubscriptionRef.make<typeof AppStateSchema.Type>({
@@ -39,8 +37,7 @@ class AppState extends Context.Service<AppState, {
})
),
}
}),
)
}))
}