You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified that I use latest version of all @mantine/* packages
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:
this.setState(
{newState: 'whatever'},
() => {/*do something after the state has been updated*/}
)
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
I would be willing to implement a fix for this issue
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: