form
                                
                                
                                
                                    form copied to clipboard
                            
                            
                            
                        formInstance.setValues does not take an updater function
for formInstance.setValues the docs say If a callback is passed, it will be given the previous value and be expected to return a new one, similar to React's setState callback style.
currently, it does not take a callback as seen below.
code:
  const setValues = React.useCallback(
    values => {
      setState(old => ({
        ...old,
        values: values,
      }))
    },
    [setState]
  )
PR has been created to add the callback here: https://github.com/tannerlinsley/react-form/pull/379