You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have a type with some fields that are deeply nested. If I assign that type to a variable there are no problems accessing or declaring its fields, but when I navigate the type's field from a useFormReturn.setValue() method I encounter the intellisense error that says "Type instantiation is excessively deep and possibly infinite".
The problem seems related to the way in which it accesses the properties and navigates throung the arrays of objects.
For example the string "subItem.0.name" is seen as a possibility that differs from "subItem.1.name" in the typescript intellisense.
To reproduce
I have created a simplified version of my project at codesandbox. To check the error just uncomment Example 1 and see that TypeScript intellisense is not working anymore.
Expected behaviour
I am expecting the navigation inside "formLogic: useFormReturn" in the same way as in the type in which each object of an array is seen in the same way.
Am I using it in a wrong way? Or is this library non intended for deeply nested objects?
What browsers are you seeing the problem on?
Firefox, Chrome, Edge
Relevant log output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
@bluebill1049 just for information, is there any possibility to have this behaviour fixed? It’s a TS issue or something bad happens within the library?
Version Number
7.50.1
Codesandbox/Expo snack
https://codesandbox.io/p/sandbox/distracted-pond-fljrf4
Steps to reproduce
Describe the bug
I have a type with some fields that are deeply nested. If I assign that type to a variable there are no problems accessing or declaring its fields, but when I navigate the type's field from a useFormReturn.setValue() method I encounter the intellisense error that says "Type instantiation is excessively deep and possibly infinite".
The problem seems related to the way in which it accesses the properties and navigates throung the arrays of objects.
For example the string "subItem.0.name" is seen as a possibility that differs from "subItem.1.name" in the typescript intellisense.
To reproduce
I have created a simplified version of my project at codesandbox. To check the error just uncomment Example 1 and see that TypeScript intellisense is not working anymore.
Expected behaviour
I am expecting the navigation inside "formLogic: useFormReturn" in the same way as in the type in which each object of an array is seen in the same way.
Am I using it in a wrong way? Or is this library non intended for deeply nested objects?
What browsers are you seeing the problem on?
Firefox, Chrome, Edge
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: