Form does not use initial values from async query result
Hey there 👋
Would someone mind having a look? 🙂
https://stackoverflow.com/questions/79761818/tanstack-form-does-not-use-initial-values-from-async-tanstack-query-result
3 Replies
multiple-amethyst•3mo ago
that defaultState seems to not be correct. You would only need to rely on defaultValues in this case
does the error continue to happen if you remove that?
foreign-sapphireOP•3mo ago
it seems the rendering is wrong but when submitting instantly I get the expected values 🤔
Maybe
<div>{JSON.stringify(form.state.values)}</div> just doesn't work?
Because this works 🙂
multiple-amethyst•3mo ago
oh, you should check the Reactivity section of Basic Concepts
the form variable is stable, so if you want to listen to props you need a hook or the subscribe element