useSetState - doesnt support optional callback parameter #6276
Closed
atumas-bananamilk
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dependencies check up
What version of @mantine/* packages do you have in package.json?
7.9.2
What package has an issue?
@mantine/core
What framework do you use?
Next.js
In which browsers you can reproduce the issue?
None
Describe the bug
In React,
useState
also allows for optional callback function:In some cases this is needed instead of using
useEffect
.Now, when using
useSetState
from Mantine (https://mantine.dev/hooks/use-set-state/), it doesn't support callback functions. Can we get such feature implemented?If possible, include a link to a codesandbox with a minimal reproduction
No response
Possible fix
No response
Self-service
Beta Was this translation helpful? Give feedback.
All reactions