Replies: 1 comment 1 reply
-
Hello, we actually thought about allowing to use different form state solutions as we are now developing a custom form state library and we would like to allow users to gradually migrate from Final Form - but we didn't decide to do it as it would introduce a lot of work for a feature that nobody would probably use. 😄
I wouldn't pass values as an object/map, but I would pass several functions (with a common api.) I guess the minimal API could look like this (based on experiences with Final Form):
Of course, this just a minimal example that would need a lot of additions in case of making complex form. (Validations are fun.) Otherwise, if there is a chance that you could use DDF, we can help with implementation of missing features. Let us know! |
Beta Was this translation helpful? Give feedback.
-
Hello,
This is probably a weird request but I felt this is the best place to reach you guys fast. We are developing an in-house form library in react similar to DDF. We have a lot of platform restrictions so we can't really go with the Markup method. So we chose a Schema based library just like DDF. I have a couple of questions, which I believe you guys would have thought throw when designing DDF. So If its possible please share your wisdom :)
Does the library MUST use internal state? We have some alternative suggestions where the consumer of the library handles the values themselves and pass it to the library, the library just update it and send it back on OnChange()s. This is just one alternative we were thinking.
if we go with the alternative suggestion, how will you pass in the values? one suggestion is, pass in with the Schema as a "value" property. But it becomes cumbersome for the consumer to keep track of things because the schema hardly change after the form loads but the value changes more often. Another alternative is to just have another prop to the library called values which is a Map of fieldKeys:values.
any help is appreciated. I just want to know if you tried one way or other and faced some challenges. Thanks in Advance :)
Beta Was this translation helpful? Give feedback.
All reactions