Skip to content

TypeError: Cannot read properties of null (reading 'control') #7942

Answered by Moshyfawn
emericspiroux asked this question in Ideas
Discussion options

You must be logged in to vote

The control is optional, so that having FormProvider up the React tree, the Controller (or any other control dependent hook) can pull the control value from the form's Context if non provided via the prop.

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@emericspiroux
Comment options

@JamesWong1999
Comment options

Comment options

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

You must be logged in to vote
1 reply
@bstro
Comment options

Comment options

You must be logged in to vote
0 replies
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
Ideas
Labels
None yet
7 participants