openlawteam / tribute-ui

Tribute - A modular DAO framework developed and coordinated by its members
https://demo.tributedao.com
Apache License 2.0
45 stars 40 forks source link

Bump react-hook-form from 6.15.8 to 7.25.3 #539

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps react-hook-form from 6.15.8 to 7.25.3.

Release notes

Sourced from react-hook-form's releases.

Version 7.25.3

😭 close #7686 regression on replace API and cloneObject on payload (#7687)

Version 7.25.2

⚛️ close #7683 support preact with onTouched mode (#7684)

thanks to @​Moshyfawn

Version 7.25.1

🐞 fix #7662 issue with reset file input (#7656) 🚗 improve perf with get proxy formState (#7655) 🏋️ remove redundant check (#7651) 🐞 fix #7648 Unable to setFocus to Controller after reset (#7649) 🐞 fix: getFieldState - error might be undefined (#7636) ⛑ improve useFieldArray code consistency (#7628)

thanks to @​Moshyfawn and @​michalbundyra

Version 7.25.0

✨ new getFieldState API: get individual field state

Documentation: https://react-hook-form.com/api/useform/getfieldstate

import * as React from "react";
import { useForm } from "react-hook-form";

export default function App() { const { register, getFieldState, formState: { isDirty, isValid } } = useForm({ mode: "onChange", defaultValues: { firstName: "" } });

// you can invoke before render or within the render function const fieldState = getFieldState("firstName");

return ( <form> <input {...register("firstName", { required: true })} /> <p>{getFieldState("firstName").isDirty && "dirty"}</p> <p>{getFieldState("firstName").isTouched && "touched"}</p> <button type="button" onClick={() => console.log(getFieldState("firstName"))}> field state </button> </tr></table>

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 2 years ago

Superseded by #543.