Skip to content
Discussion options

You must be logged in to vote

Having additional props on the FormProvider would get the context way out of scope of RHF.

You don't pass additional stuff into the MUI ThemeProvider as it has it's own theme context. Same goes for, say, the Recoil RecoilRoot.

Now, there's an argument to be able to pass additional information via the RHF FormProvider as, say, the Redux StoreProvider allows for a custom context. But it's a lot of overhead for RHF.

I don't think RHF will provide a custom context in the nearest future.

That said, @bluebill1049, if you want to look at the way Redux implements the custom context to potentially implement the fieldArray feature (#7544) and can think of anything else that might benefit this appro…

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@bluebill1049
Comment options

@wowczarczyk
Comment options

@genshinw
Comment options

@wowczarczyk
Comment options

@carlBgood
Comment options

Answer selected by bluebill1049
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants