So the issue is that I think that the {...register("name"}}
line actually includes a ref property. You could console.log that out to verify; this is what I found to be true when using {...field}
with the ControlledComponent. A very quick fix to get rid of the console error is to just, after the line with the spread, to add a ref={null}
to override this ref that is being passed in from the library.