Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 2.0 #34

Open
pedro-lb opened this issue Jul 20, 2020 · 0 comments
Open

Version 2.0 #34

pedro-lb opened this issue Jul 20, 2020 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@pedro-lb
Copy link
Contributor

pedro-lb commented Jul 20, 2020

  • Improve docs, move all content in README to a documentation page

  • Rename FormInput to Field

  • Rename FormArrayField to ArrayField

  • Rename FormInputGroup to GroupField

  • Remove FormInputGroupItem, export it as GroupField.Item

  • Don't return formikForm, return formState instead:

interface formState {  
  values: object; // should be typed according to schema
  errors: object; // should be typed according to schema
  touched: object; // should be typed according to schema

  setFieldValue = (fieldName: string, value: any) => void;
  setFieldError = (fieldName: string, error: any) => void;
  setFieldTouched = (fieldName: string) => void;
  setFieldUntouched = (fieldName: string) => void;
}
  • Remove all dependencies of formik, manage form state internally
@pedro-lb pedro-lb added the enhancement New feature or request label Jul 20, 2020
@pedro-lb pedro-lb added this to the V2 milestone Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant