This commit is contained in:
@@ -12,7 +12,7 @@ const RegisterFormSchema = Schema.Struct({
|
||||
})
|
||||
|
||||
class RegisterForm extends Effect.Service<RegisterForm>()("RegisterForm", {
|
||||
scoped: Form.make({
|
||||
scoped: Form.service({
|
||||
schema: RegisterFormSchema,
|
||||
initialEncodedValue: { email: "", password: "" },
|
||||
})
|
||||
@@ -64,7 +64,7 @@ class RegisterPage extends Component.makeUntraced(function* RegisterPage() {
|
||||
|
||||
|
||||
const RegisterRoute = Component.makeUntraced(function* RegisterRoute() {
|
||||
const context = yield* useContext(RegisterForm.Default)
|
||||
const context = yield* useContext(RegisterForm.Default, { finalizerExecutionMode: "fork" })
|
||||
const RegisterRouteFC = yield* Effect.provide(RegisterPage, context)
|
||||
|
||||
return <RegisterRouteFC />
|
||||
|
||||
Reference in New Issue
Block a user