Resume Craft: Your go-to platform for effortlessly tailoring ATS-friendly resumes to job descriptions. Streamline your job application process and stand out in the competitive market.
Describe the issue in detail
The form components of shadcn library are controlled components using react-hook-forms, and are good when used directly inside the form.
But we want to create reusable components that are going to use these form components, so we want them to be uncontrolled.
This will also make unit/integration testing these components easier.
Describe the solution you'd like
We can ditch shadcn's form and use our custom form. In this way, we can ensure that these components are uncontrolled. This can address the above issue.
One possible drawback of this approach is that this will require some additional effort.
Are you willing to contribute to this issue? [Yes/No]
Yes
Describe alternatives you've considered
Another approach can be that we can modify the form components generated using shadcn to be uncontrolled. I have not investigated the feasibility of this solution yet.
We will need to understand the whole flow of the form components, underlying radixui component and how this overall interact with react-hook-forms. There can be a possibiluty that after all this investigation, it turns out that it is not feasible to convert these components from controlled to uncontrolled. So this has a possibility of effort being wasted.
Additional context
Dont want to spend too much time on this as I want the MVP to be up and running ASAP.
Describe the issue in detail The form components of shadcn library are controlled components using react-hook-forms, and are good when used directly inside the form.
But we want to create reusable components that are going to use these form components, so we want them to be uncontrolled.
This will also make unit/integration testing these components easier.
Describe the solution you'd like We can ditch shadcn's form and use our custom form. In this way, we can ensure that these components are uncontrolled. This can address the above issue.
Describe alternatives you've considered Another approach can be that we can modify the form components generated using shadcn to be uncontrolled. I have not investigated the feasibility of this solution yet.
Additional context Dont want to spend too much time on this as I want the MVP to be up and running ASAP.