Fix/form ts error (#35394)
* Fix forwardRef type in the Form component * Add changelog * Revert type changes
This commit is contained in:
parent
1b2a94b030
commit
aea554bcdb
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: tweak
|
||||
|
||||
Update variable name within useFormContext.
|
|
@ -58,7 +58,7 @@ export const FormContext = createContext< FormContext< any > >(
|
|||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
export function useFormContext< Values extends Record< string, any > >() {
|
||||
const formik = useContext< FormContext< Values > >( FormContext );
|
||||
const formContext = useContext< FormContext< Values > >( FormContext );
|
||||
|
||||
return formik;
|
||||
return formContext;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue