Open jedwards1211 opened 4 years ago
Also the $Shape
around Meta
is unnecessary since all properties in it are optional anyway
The solution for me was to downgrade from 3.1.3 to 3.1.1 Please take care about it so in future we can use the newest versions.
Let me know if you want a PR...I think we need to investigate workarounds before we proceed...
I'm getting errors like this:
Problem is here: https://github.com/final-form/react-final-form-arrays/blob/16f19c538acb62f0410ad6aaf69ccd386fded0a0/src/types.js.flow#L57
Intersecting inexact shape types in Flow has always caused problems like this sporadically.
It seems like this appears to work, though I don't trust it until I've played with it more:
I don't trust it until I've played with it more though, because I remember seeing inexact spreads like
{ name: string, ...UseFieldArrayConfig }
produce buggy errors (https://github.com/facebook/flow/issues/1326#issuecomment-523286703).