Skip to content

How to set default values asynchronously when using withForm? #1610

Closed Answered by LeCarbonator
rudzky asked this question in Q&A
Discussion options

You must be logged in to vote

withForm merely creates a component that accepts any form of the correct type. Since it doesn't create a form instance, it doesn't need asynchronous defaultValues as its own defaultValues are unused during runtime.

See setting asynchronous defaultValues for the form hook in the documentation instead.

Replies: 1 comment

Comment options

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