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
Convert form state to use state #2600
Conversation
Looks like the net size dropped 300KB across all bundles and functionality is essentially the same. I'm good with this as long as the checks are all passing. I don't see any reason that this should be an issue. |
It's actually dropped by refactoring two data types, but yeah thanks for the review @stramel 👍 |
* Update Yarn Lock and improve cypress tests * Undo some fixes
fixed @pmaier983 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks Awesome! Really great work bill!
you too :) |
cypress/integration/controller.ts
Outdated
}); | ||
|
||
// it('should validate the form with onChange mode and reset the form', () => { | ||
// cy.visit('http://localhost:3000/controller/onChange'); | ||
it('should validate the form with onChange mode and reset the form', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for fixing! I wonder why it was broken in the first place!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no idea :(
plan to merge it this Friday 👍 |
🎉 Summary
useRef
state touseState
errors
object insideformState
and keeperrors
at the root level as an aliasvalidatedFields
&fieldsWithvalidation
to Object type🐞 Bugs
let me know if you have any questions or concerns.