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 71f66cd5bc - Show all commits
+3 -1
View File
@@ -28,8 +28,10 @@ export const useAll = Effect.fnUntraced(function* <const T extends readonly View
yield* Component.useOnMount(() => Effect.all(elements.map(View.get)))
)
yield* Component.useReactEffect(() => View.changes(View.zipLatestAll(...elements)).pipe(
yield* Component.useReactEffect(() => Stream.make(reactStateValue).pipe(
Stream.concat(View.changes(View.zipLatestAll(...elements))),
Stream.changesWith((options?.equivalence as Equivalence.Equivalence<any[]> | undefined) ?? Equivalence.Array(Equivalence.strictEqual())),
Stream.drop(1),
Stream.runForEach(v =>
Effect.sync(() => setReactStateValue(v))
),