The state variable of React hook is not synchronized in function onValuesChange of Mantine hook useForm #5901
Closed
1 of 2 tasks
Labels
Fixed patch
Completed issues that will be published with next patch (1.0.X)
Dependencies check up
What version of @mantine/* packages do you have in package.json?
7.6.1
What package has an issue?
@mantine/form
What framework do you use?
Vite
In which browsers you can reproduce the issue?
Chrome
Describe the bug
Create a form by hook
useForm
, and update the React state variable in functiononValuesChange
. When i update the form values, it seems the state variable is always 0 in functiononValuesChange
.If possible, include a link to a codesandbox with a minimal reproduction
https://codesandbox.io/p/sandbox/mantine-react-template-forked-kps233?file=%2Fsrc%2FApp.tsx
Possible fix
No response
Self-service
The text was updated successfully, but these errors were encountered: