Skip to content
Discussion options

You must be logged in to vote

We'll after hours of searching without result. I tried something which managed to work. I just exported a custom hook from the package to use in my app and it seems to be working... bitter sweet.

// node_modules/my-custom-form/dist/my-form-context.js (My Package)
import { useFormContext } from 'react-hook-form';

export const useMyFormContext = useFormContext();

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by douwepausma
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants