Skip to content

Refactor form components to use RHF useController #28

@mwarman

Description

@mwarman

Description

Use the useController with control in React Hook Forms rather than FormProvider. The React context approach with FormProvider will result in more rerendering of the entire form component tree. useController should provide a fine-grained approach for each form control component and reduce the number of rerendered components.

Tasks

  • Review and update the custom form components
  • Review and update the sign in form
  • Update stories as needed
  • Update tests as needed

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions