0.2.6 #49
@@ -148,9 +148,11 @@ export const make = Effect.fnUntraced(function* <A, I = A, R = never, TER = neve
|
|||||||
const issuesLens = Lens.fromSubscriptionRef(yield* SubscriptionRef.make<readonly ParseResult.ArrayFormatterIssue[]>(Array.empty()))
|
const issuesLens = Lens.fromSubscriptionRef(yield* SubscriptionRef.make<readonly ParseResult.ArrayFormatterIssue[]>(Array.empty()))
|
||||||
const validationFiberLens = Lens.fromSubscriptionRef(yield* SubscriptionRef.make(Option.none<Fiber.Fiber<A, ParseResult.ParseError>>()))
|
const validationFiberLens = Lens.fromSubscriptionRef(yield* SubscriptionRef.make(Option.none<Fiber.Fiber<A, ParseResult.ParseError>>()))
|
||||||
const isCommittingLens = Lens.fromSubscriptionRef(yield* SubscriptionRef.make(false))
|
const isCommittingLens = Lens.fromSubscriptionRef(yield* SubscriptionRef.make(false))
|
||||||
const initialEncodedValue = yield* Lens.get(options.target).pipe(
|
|
||||||
Effect.flatMap(Schema.encode(options.schema, { errors: "all" })),
|
const initialEncodedValue = options.initialEncodedValue ?? (yield* Effect.flatMap(
|
||||||
)
|
Lens.get(options.target),
|
||||||
|
Schema.encode(options.schema, { errors: "all" }),
|
||||||
|
))
|
||||||
|
|
||||||
return new SynchronizedFormImpl(
|
return new SynchronizedFormImpl(
|
||||||
options.schema,
|
options.schema,
|
||||||
|
|||||||
Reference in New Issue
Block a user