Last active
September 15, 2020 15:02
-
-
Save Vi-dot/bc5223fe3d461771630fc2b878ca4404 to your computer and use it in GitHub Desktop.
react-hook-form useFieldArray remove bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
With useFieldArray hook, remove function works fine in Debug mode, but not in Release mode. | |
In Release mode, remove(one_index) function removes all items appended, but keep items from defaultValues. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment