@@ -133,7 +133,10 @@ extends Pipeable.Class() implements SubmittableForm<A, I, R, MA, ME, MR, MP> {
|
|||||||
|
|
||||||
get run(): Effect.Effect<void, never, never> {
|
get run(): Effect.Effect<void, never, never> {
|
||||||
return Lens.get(this.encodedValue).pipe(
|
return Lens.get(this.encodedValue).pipe(
|
||||||
Effect.flatMap(v => this.synchronizeEncodedValue(v)),
|
Effect.flatMap(v => Schema.decode(this.schema)(v)),
|
||||||
|
Effect.option,
|
||||||
|
Effect.flatMap(v => Lens.set(this.value, v)),
|
||||||
|
Effect.provide(this.context),
|
||||||
this.runSemaphore.withPermits(1),
|
this.runSemaphore.withPermits(1),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user