You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Until version 1.31.0, it's been possible to set async initial values that are in the form of an array. In version 1.32.0, this does not seem to work anymore. I assume this PR is the reason, however I've not looked into it.
@mudasirpandith I'm not sure I follow. The issue has to deal with asynchronous state, so I assume in your code example that form.setFieldValue would be called in a useEffect, which is not ideal. Not to mention, it should not be necessary since TanStack Form handles these cases automatically, according to the docs: https://tanstack.com/form/latest/docs/framework/react/guides/async-initial-values
Activity
mudasirpandith commentedon May 15, 2026
@eTallang, is there a specific reason for maintaining separate state here instead of directly using form.setFieldValue?
eTallang commentedon May 15, 2026
@mudasirpandith I'm not sure I follow. The issue has to deal with asynchronous state, so I assume in your code example that
form.setFieldValuewould be called in auseEffect, which is not ideal. Not to mention, it should not be necessary since TanStack Form handles these cases automatically, according to the docs: https://tanstack.com/form/latest/docs/framework/react/guides/async-initial-values