airjp73 / rvf

Easy form validation and state management for React and Remix
https://rvf-js.io
MIT License
839 stars 66 forks source link

[Bug]: The FieldArrayHelpers returned from useFieldArray don't know about the type argument. #341

Closed VirtuaBoza closed 2 months ago

VirtuaBoza commented 11 months ago

Which packages are impacted?

What version of these packages are you using?

Please provide a link to a minimal reproduction of the issue.

This is not a behavior issue.

Steps to Reproduce the Bug or Issue

The FieldArrayHelpers returned from useFieldArray don't know about the type argument.

Expected behavior

This line: https://github.com/airjp73/remix-validated-form/blob/main/packages/remix-validated-form/src/internal/state/fieldArray.tsx#L168 should forward the type argument to FieldArrayHelpers unless I'm mistaken.

Screenshots or Videos

No response

Platform

N/A

Additional context

No response

airjp73 commented 2 months ago

RVF v6 has been released 🎉

This should no longer be the case in v6. If it's still a problem in that version, please feel free to open a new issue.

You can find the documentation here and the migration guide here.