Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 28, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-hook-form (source) 7.54.2 -> 7.56.0 age adoption passing confidence

Release Notes

react-hook-form/react-hook-form (react-hook-form)

v7.56.0

Compare Source

v7.55.0: Version 7.55.0

Compare Source

⚡️ createFormControl

  • Allow us to start subscribing outside of the React component
const { formControl, control } = createFormControl(props)

function App() {
  const { register } = useForm({
    formControl,
  })

  return <form />
}

function Test() {
  useFormState({
    control // no longer need context api
  })
}

⚡️ subscribe

  • subscribe form state update without re-render
  • subscribe outside of the react component
const { formControl } = createFormControl(props)

formControl.subscribe({
  formState: { isDirty: true },
  callback: (formState) => {
    if (formState.isDirty) {
      // do something here
    }
  }
})

function App() {
  const { register } = useForm({
    formControl,
  })

  return <form />
}

🪲 fix https://github.com/react-hook-form/react-hook-form/issues/12680: Update Fieldarray Unmount Status (https://github.com/react-hook-form/react-hook-form/pull/12690)
🫡 fix: improve type inference for useFormContext (https://github.com/react-hook-form/react-hook-form/pull/12689)
👮‍♂️ feat: infer resolver output types (https://github.com/react-hook-form/react-hook-form/pull/12638)
🐞 fix(useForm): make values and defaultValues work correctly with createFormControl and useMemo (https://github.com/react-hook-form/react-hook-form/pull/12675)
🥹 close https://github.com/react-hook-form/react-hook-form/issues/12665 issue with values not populate form
🐞 fix https://github.com/react-hook-form/react-hook-form/issues/12665 regression on values over take default values
🫡 allow use of handleSubmit with native events (https://github.com/react-hook-form/react-hook-form/pull/12645)
🐞 fix https://github.com/react-hook-form/react-hook-form/issues/12631 revalidateMode issue with useFieldArray validation (https://github.com/react-hook-form/react-hook-form/pull/12646)
🦥 close https://github.com/react-hook-form/react-hook-form/issues/12634 allow components with useController hook be memoized (https://github.com/react-hook-form/react-hook-form/pull/12635)
🐞 fix https://github.com/react-hook-form/react-hook-form/issues/12580 setError in useEffect does not work when used inside the FormProvider context (https://github.com/react-hook-form/react-hook-form/pull/12642)
🛟 fix: add the condition to prevent infinite render with errors prop (https://github.com/react-hook-form/react-hook-form/pull/12622)
🐞 fix https://github.com/react-hook-form/react-hook-form/issues/12580 valid state update with onBlur mode (https://github.com/react-hook-form/react-hook-form/pull/12612)
🐞 fix https://github.com/react-hook-form/react-hook-form/issues/12572 disabled field value not get undefined in resolver (https://github.com/react-hook-form/react-hook-form/pull/12573)
🦾 feat: reference stable for useWatch defaultValue (https://github.com/react-hook-form/react-hook-form/pull/12564)
⏰ chore: remove typetest folder from build (https://github.com/react-hook-form/react-hook-form/pull/12555)
🐞 fix https://github.com/react-hook-form/react-hook-form/issues/12532 useController should unregister issue with strict mode (https://github.com/react-hook-form/react-hook-form/pull/12538)
👁️ feat: improve reference update with useWatch (https://github.com/react-hook-form/react-hook-form/pull/12537)
🦥 close https://github.com/react-hook-form/react-hook-form/issues/12531 disabled state issue with touched and dirty (https://github.com/react-hook-form/react-hook-form/pull/12536)

thanks to @​jtomaszewski, @​joshkel, @​candymask0712, @​kotarella1110, @​jorisre, @​jtomaszewski, @​controversial and @​jedahu


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Mar 28, 2025
@renovate renovate bot had a problem deploying to data-manager-ui/test March 28, 2025 22:49 Failure
@renovate renovate bot had a problem deploying to data-manager-ui/test March 28, 2025 22:49 Failure
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 7256b27 to 5a79ad4 Compare March 30, 2025 18:35
@renovate renovate bot had a problem deploying to data-manager-ui/test March 30, 2025 18:37 Failure
@renovate renovate bot had a problem deploying to data-manager-ui/test March 30, 2025 18:37 Failure
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 5a79ad4 to 495a569 Compare March 30, 2025 18:54
@renovate renovate bot had a problem deploying to data-manager-ui/test March 30, 2025 18:56 Failure
@renovate renovate bot had a problem deploying to data-manager-ui/test March 30, 2025 18:56 Failure
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 495a569 to d0ef542 Compare March 30, 2025 19:41
@renovate renovate bot had a problem deploying to data-manager-ui/test March 30, 2025 19:42 Failure
@renovate renovate bot had a problem deploying to data-manager-ui/test March 30, 2025 19:42 Failure
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from d0ef542 to b5da21d Compare April 20, 2025 09:39
@renovate renovate bot changed the title chore(deps): update dependency react-hook-form to v7.55.0 chore(deps): update dependency react-hook-form to v7.56.0 Apr 20, 2025
@renovate renovate bot had a problem deploying to data-manager-ui/test April 20, 2025 09:40 Failure
@renovate renovate bot had a problem deploying to data-manager-ui/test April 20, 2025 09:40 Failure
@renovate renovate bot changed the title chore(deps): update dependency react-hook-form to v7.56.0 chore(deps): update dependency react-hook-form to v7.56.0 - autoclosed Apr 22, 2025
@renovate renovate bot closed this Apr 22, 2025
@renovate renovate bot deleted the renovate/react-hook-form-7.x branch April 22, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant