Describe the bug
When the form value is an object and the field being accessed has numeric keys, I cannot call deleteField or clearFieldValues.
an exception occurs: "It seems we have created an infinite loop in deleteBy."
Your minimal, reproducible example
https://codesandbox.io/p/sandbox/relaxed-kirch-hjgm8s
Steps to reproduce
- Configure the form value to contain elements with numeric keys in the path, such as
{ a: { 123: [] } }.
- Call
deleteField('a.123').
- An error occurs.
Expected behavior
Errors must not occur.
How often does this bug happen?
None
Screenshots or Videos
Platform
- OS: macOS
- Browser: Chrome
TanStack Form adapter
react-form
TanStack Form version
1.26.0
TypeScript version
No response
Additional context
No response