Skip to content

Update dependency react-hook-form to v7.56.1 #251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
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.1 age adoption passing confidence

Release Notes

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

v7.56.1

Compare Source

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.

Copy link

netlify bot commented Mar 28, 2025

Deploy Preview for calendar-gatsby ready!

Name Link
🔨 Latest commit 78ff63a
🔍 Latest deploy log https://app.netlify.com/sites/calendar-gatsby/deploys/6808202ccbf25a00086ec7db
😎 Deploy Preview https://deploy-preview-251--calendar-gatsby.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@renovate renovate bot changed the title Update dependency react-hook-form to v7.55.0 Update dependency react-hook-form to v7.56.0 Apr 20, 2025
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x-lockfile branch from 4b584d4 to 56980f5 Compare April 20, 2025 15:01
@renovate renovate bot changed the title Update dependency react-hook-form to v7.56.0 Update dependency react-hook-form to v7.56.1 Apr 22, 2025
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x-lockfile branch from 56980f5 to 78ff63a Compare April 22, 2025 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants