Hi everybody,
i am currently working on a project which revolves around a form to add recipes. Therefore I thought this might be the perfect opportunity to dive deeper in the TanStack with forms. I used this library before with a simple form in Angular. My new project now is in React with Tanstack Start.
Now to my question abut pushValue. I have a field where its counterpart in the Forms state is a string array. Therefore I figured out that I can add entries to this array using field.pushValue() like field.pushValue("hi"). Now the Function signature is confusing me a bit because it is showing string array variations for the type of the argument value.
As you can see I figured out how to use through the feedback of my LSP which was mad at me when passing string[] to field.pushValue(). But I'm quite curious here and would like to understand the behind the scenes a bit more despite the risk that I'm might not ready for the answer π.
Best wishes and thank you in advance