Comments (9)
This is super interesting. I'll start looking into the possibilities in the code and keep you up to date here.
from form.
As a feathers user, I am most definitely in favour!
from form.
Working on getting V2 rolled out soon. This supports Asynchronous validation. Stay tuned!
from form.
Async validation now supported!
from form.
At this state, postSubmit
is also pretty useless since it will be called anyway without the results. My current workaround is to call resetForm
manually since it's the 4th argument passed to submit
. This is very much an implementation detail and should not be used this way.
submit = (v, s, p, f) => submit(v).then(f.resetForm)
from form.
from form.
It is a light joke, I deleted it, because feathersjs is not so popular that everyone will get it :) But this is the background
This proposal will make preSubmit
, onSubmit
and postSubmit
functions like the hooks in feathersjs, each of them will return a promise and they would await the async action of the previous hook.
And I think @marshallswain is one of the authors of feathersjs.
from form.
Yep. @chuan137's got me. Inspired by Feathers.
from form.
It appears async submit is now supported, too! (Similar to the proposal found in this issue.)
from form.
Related Issues (20)
- Rename Validators to Avoid DOM Event Confusion HOT 2
- Add docs and tests for Field Arrays HOT 5
- FormApi.reset seems to break a form HOT 7
- Unmounting a field does not update the form HOT 1
- Caching Primitives HOT 1
- Mark internal methods as internal HOT 2
- deleteField does not work inside if field is inside an array
- Add tests for getBy, setBy and deleteBy
- Svelte support
- validateAllFields isn't working with touched fields HOT 5
- "A component is changing a controlled input to be uncontrolled" in Next.js App router HOT 5
- Programatic updates don't get shown on fields HOT 7
- Async Fetcher to set up values HOT 2
- DeepKeys produces keys incompatible with DeepValue HOT 4
- 'Cannot convert undefined or null to object' when rendering field conditionally with React.StrictMode HOT 5
- SolidJS Array Field Not Working HOT 4
- Inconsistent State Movement in React Array Fields on Reordering HOT 5
- Validations guide features old validations syntax
- In solidjs table cells, validation can be slow HOT 2
- Typescript definitions HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from form.