0.2.6 #49

Merged
Thilawyn merged 48 commits from next into master 2026-05-04 02:10:53 +02:00
Showing only changes of commit 22a4b542c0 - Show all commits

View File

@@ -154,16 +154,14 @@ export class SynchronizedFormImpl<
Stream.runForEach(
Stream.drop(this.target.changes, 1),
targetValue => Schema.encode(this.schema, { errors: "all" })(targetValue).pipe(
Effect.flatMap(encodedValue => Effect.andThen(
Effect.whenEffect(
Effect.flatMap(encodedValue => Effect.whenEffect(
Lens.set(this.internalEncodedValue, encodedValue),
Effect.map(
Lens.get(this.internalEncodedValue),
currentEncodedValue => !Equal.equals(encodedValue, currentEncodedValue),
),
),
Lens.set(this.issues, Array.empty()),
)),
Effect.andThen(Lens.set(this.issues, Array.empty())),
Effect.ignore,
),
),