Skip to content
This repository was archived by the owner on Dec 25, 2025. It is now read-only.

Remove @fabrix-framework/fabrix/rhf export - #20

Draft
IzumiSy wants to merge 2 commits into
mainfrom
remove_rhf_package
Draft

Remove @fabrix-framework/fabrix/rhf export#20
IzumiSy wants to merge 2 commits into
mainfrom
remove_rhf_package

Conversation

@IzumiSy

@IzumiSyIzumiSy commented Oct 10, 2024

Copy link
Copy Markdown
Member

Fabrix internally uses react-hook-form to manage form states and was exposing @fabrix-framework/fabrix/rhf to provider users with the same version of react-hook-form. This is a adhoc workaround toward the behaviour that useController hook in component registries does not access the same version of react-hook-form that fabrix internally mounts as FormProvider.

However, I found that adding react-hook-form a peer dependency also works out. Exposing RHF from fabrix was a bit clumsy, so this PR is a fix for that.

@IzumiSyIzumiSy self-assigned this Oct 10, 2024
@IzumiSy
IzumiSy requested a review from a team as a code ownerOctober 10, 2024 06:54
"react": "^18",
"react-dom": "^18"
"react-dom": "^18",
"react-hook-form": "^7"

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added RHF here

@IzumiSy
IzumiSy marked this pull request as draft October 11, 2024 00:01
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@IzumiSy