Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple fieldArray problem #16

Open
martin-sic opened this issue Feb 14, 2022 · 1 comment
Open

Multiple fieldArray problem #16

martin-sic opened this issue Feb 14, 2022 · 1 comment

Comments

@martin-sic
Copy link

I cleaned up all the unnecessary code from my component and left only what is important to test the problem. The code written this way worked normally up to version 0.3.12.
It seems to work only if it has one fieldArray, which doesn't make much sense.
When I add another fieldArray, it throws me error, as if it doesn't know which of those fields it refers to:
Images and full code are attached.

NonWorkingVersion.txt
WorkingVersion.txt
Bug
Bug2

@gabro
Copy link
Member

gabro commented Feb 16, 2022

Hi @martin-sic thanks for reporting. I'll try to take a look soon, it seems like an inference error.

By the way, we've just released 2.0.0 stable on npm (we'll announce it once the documentation PR is merged) which removes fp-ts and it changes the fieldArray API a little, so that it works more reliably (it's called subForm in 2.0.0).

While we investigate this bug in 1.x I suggest to maybe evaluate how costly it would be for you to switch to 2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants