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
Hi @phantomcosmonaut , the previous code used {getValues(foobars.${i}).color} to access the color value of each foobar item, which resulted in errors. The correct approach is to use {getValues(foobars.${i}.color)}.
This ensures that the color value is accessed correctly from the foobars array.
{getValues('foobars.${i}.color')}
Version Number
7.51.5 (latest)
Codesandbox/Expo snack
https://codesandbox.io/p/sandbox/unruffled-mcclintock-44t7mp
Steps to reproduce
Add Foobar
buttonRemove Foobar
Cannot read properties of undefined (reading 'color')
Expected behaviour
Actual:
useWatch
returns[undefined]
Expected:
useWatch
returns[]
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: