TanStackT
TanStackβ€’3mo agoβ€’
20 replies
dead-brown

how to get proper type when using form.pushFieldValue ?

Hello everyone πŸ‘‹

First of all, thank you so much for this amazing library !! πŸ™
I've been playing with mode="array" and pushing values

Works flawlessly when accessing the array field via <form.AppField>

However trying to do so imperatively via form.pushFieldValue, despite working properly, shows a type error as pushFieldValue's first argument "field" is somehow typed as "never" (despite everything else being properly typed)

form.pushFieldValue is not mentioned in the docs so i'm not sure how to use it properly, any help would be much appreciated πŸ™‚
image.png
image.png
Was this page helpful?