Ben Gladman

Results 4 comments of Ben Gladman

I've found that this problem is due to [automatic batching](https://reactjs.org/blog/2022/03/29/react-v18.html#new-feature-automatic-batching). You can work around it by wrapping the `setList` function in `flushSync`: ```tsx import { flushSync } from 'react-dom'; ```...

@etiennelacoursiere I changed it to this later on, which I think fixes that problem: ```tsx setList={(newSteps, sortable) => { if (sortable) { // flushSync required for this to work in...

Thanks @LFDanLu , getChildNodes works well.

@theVedanta I have the same issue you have described. I think the cause is the code here https://github.com/TanStack/form/blob/8672e57a7bea0a7318435d29d22c321d465e0213/packages/form-core/src/FormApi.ts#L1563-L1572 i.e. if the form is not in a `canSubmit` state then it...