I have arrays/objects in my schema. Looks like if submitOnChange is enabled, onSubmit doesn't take initial values in count. This means JSX rendering can fail in case it expects arrays/objects (initially undefined now).
You can see this problem at https://github.com/koodilehto/invoice-frontend/blob/3e1dd956fa7a1a5c57f906e78c1e21a4cb648f07/src/js/app.jsx .
I don't know what's the most natural way to deal with it. I could likely hack around it by doing some sort of copy at onSubmit to get the initial values right or hack at render but those don't feel right.
I have arrays/objects in my schema. Looks like if
submitOnChangeis enabled,onSubmitdoesn't take initialvaluesin count. This means JSX rendering can fail in case it expects arrays/objects (initiallyundefinednow).You can see this problem at https://github.com/koodilehto/invoice-frontend/blob/3e1dd956fa7a1a5c57f906e78c1e21a4cb648f07/src/js/app.jsx .
I don't know what's the most natural way to deal with it. I could likely hack around it by doing some sort of copy at
onSubmitto get the initial values right or hack atrenderbut those don't feel right.