aanation

aanation/effector-forms

TypeScript
108
19
No license

userProfileForm = createForm({ fields: { username: { init: "", rules: [requiredRule], }, about: { init: "", rules: [maxLengthRule], }, birhDate: { init: "", rules: [requiredRule], }, }, }) sample({ clock: getUserProfileFx.doneData, target: userProfileForm.setForm, }) ``` ## Set initial form It is often necessary to set the initial value of the form by an event. This is useful for initializing initial field values. In this case you can use **setInitialForm** event: ```ts type User = { username: string about?: string birhDate?: string } const getUserProfileFx = createEffect<void, User, Error>() const userProfileForm = createForm({ fields: { username: { init: "", rules: [requiredRule], }, about: { init: "", rules: [maxLengthRule], }, birhDate: { init: "", rules: [requiredRule], }, }, }) sample({ clock: getUserProfileFx.doneData, target: userProfileForm.set

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of aanation/effector-forms

Account's avatar
Babel compiler core.
Account's avatar
This plugin transforms ES2015 modules to CommonJS
Account's avatar
A Babel preset for each environment.
Account's avatar
Babel preset for all React plugins.
Account's avatar
Babel preset for TypeScript.
Account's avatar
Simple and complete React DOM testing utilities that encourage good testing practices.
Account's avatar
TypeScript definitions for jest
Account's avatar
TypeScript definitions for react
Account's avatar
TypeScript plugin for ESLint
Account's avatar
An ESLint custom parser which leverages TypeScript ESTree
Account's avatar
Jest plugin to use babel for transformation.
Account's avatar
Module resolver plugin for Babel
Account's avatar
Run scripts that set and use environment variables across platforms
Account's avatar
DTS Bundle Generator
Account's avatar
Enforce best practices for JavaScript promises
Account's avatar
React specific linting rules for ESLint
Account's avatar
An ESLint plugin that validates TypeScript doc comments
Account's avatar
Delightful JavaScript Testing.
Account's avatar
React is a JavaScript library for building user interfaces.
Account's avatar
React package for working with the DOM.
Account's avatar
React package for snapshot testing.
Account's avatar
Next-generation ES module bundler
Account's avatar
Rollup plugin to minify generated es bundle
Account's avatar
TypeScript execution environment and REPL for node.js, with source map support
Account's avatar
Create api documentation for TypeScript projects.
Account's avatar
A plugin for TypeDoc that enables TypeScript API documentation to be generated in Markdown.
Account's avatar
TypeScript is a language for application scale JavaScript development
Account's avatar
Vite & Vue powered static site generator
Account's avatar
Dead simple Object schema validation

Support the repos that depend on this repository

Top contributors

aanation's profile
aanation
134 contributions
krvd's profile
krvd
2 contributions
Rinasik's profile
Rinasik
2 contributions
EvgeniyMdr's profile
EvgeniyMdr
1 contributions
Spoki4's profile
Spoki4
1 contributions
ducker-dev's profile
ducker-dev
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet