Dynamic form removing fields when rerendering - TanStack