Replies: 1 comment
-
Hi @t1m0n, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I have a typical situation when I fetch some data and pass this data to the
useForm
. I also havedefaultValues
set along withvalues
. The problem is that when my request is loaded I show the page with a form and it displaysdefaultValues
for a moment and replaces them with actual data after.Even if using sync data,
useForm
anyway for a moment usesdefaultValues
instead ofvalues
Example
Live example - https://stackblitz.com/edit/stackblitz-starters-lkabsa?file=src%2FApp.tsx
The code above firstly logs
name default
and aftername current
.So the question is, is where anyway to get
values
in the first place if bothdefaultValues
andvalues
are set?Thank you!
Beta Was this translation helpful? Give feedback.
All reactions