#Type issue with form.getInputProps

2 messages · Page 1 of 1 (latest)

velvet knot
#

I looked up the return value of form.getInputProps('name') and found that the value field is not strongly typed. Is it supposed to only be used for spreading on components? Should I use getValues() if I want to use a specific value field in useEffect(), useMemo()? Does getValues() make it more likely to re-render than getInputProps()?

nimble dock