Skip to content

Instantly share code, notes, and snippets.

@Vi-dot
Last active September 15, 2020 15:02
Show Gist options
  • Save Vi-dot/bc5223fe3d461771630fc2b878ca4404 to your computer and use it in GitHub Desktop.
Save Vi-dot/bc5223fe3d461771630fc2b878ca4404 to your computer and use it in GitHub Desktop.
react-hook-form useFieldArray remove bug
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