Skip to content

Commit

Permalink
Merge pull request #85 from AdiRishi/arishi-issue-84
Browse files Browse the repository at this point in the history
Add validatingFields to formState return from useRemixForm to be compatible with react-hook-form 7.51.0
  • Loading branch information
AlemTuzlak authored Mar 3, 2024
2 parents 9ca8a0e + 2e63558 commit 52f6da5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
25 changes: 12 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"prettier": "^3.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.49.3",
"react-hook-form": "^7.51.0",
"remix-development-tools": "^3.1.1",
"rollup": "^3.20.2",
"rollup-plugin-typescript2": "^0.34.1",
Expand Down
1 change: 1 addition & 0 deletions src/hook/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ describe("useRemixForm", () => {
isSubmitting: false,
isValid: false,
isValidating: false,
validatingFields: {},
touchedFields: {},
submitCount: 0,
isLoading: false,
Expand Down
2 changes: 2 additions & 0 deletions src/hook/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export const useRemixForm = <T extends FieldValues>({
isSubmitting,
isValid,
isValidating,
validatingFields,
touchedFields,
submitCount,
errors,
Expand Down Expand Up @@ -125,6 +126,7 @@ export const useRemixForm = <T extends FieldValues>({
isSubmitting: isSubmittingForm || isSubmitting,
isValid,
isValidating,
validatingFields,
touchedFields,
submitCount,
isLoading,
Expand Down

0 comments on commit 52f6da5

Please sign in to comment.