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
useHash renders with "" in the first render, making it impossible to declare initial state values with it.
Here's an overly simplified version of my case:
What version of @mantine/* packages do you have in package.json? (Note that all @mantine/* packages must have the same version in order to work correctly)
6.0.21
If possible, please include a link to a codesandbox with the reproduced problem
No response
Do you know how to fix the issue
Yes
Are you willing to participate in fixing this issue and create a pull request with the fix
Yes
Possible fix
My solution suggestion would be to replace the following line:
What package has an issue
@mantine/hooks
Describe the bug
useHash
renders with""
in the first render, making it impossible to declare initial state values with it.Here's an overly simplified version of my case:
However, since internally its initial value is set as an effect on the second render, I can't use it as a barebone for a state initializer.
mantine/src/mantine-hooks/src/use-hash/use-hash.ts
Lines 20 to 22 in b10a096
What version of @mantine/* packages do you have in package.json? (Note that all @mantine/* packages must have the same version in order to work correctly)
6.0.21
If possible, please include a link to a codesandbox with the reproduced problem
No response
Do you know how to fix the issue
Yes
Are you willing to participate in fixing this issue and create a pull request with the fix
Yes
Possible fix
My solution suggestion would be to replace the following line:
mantine/src/mantine-hooks/src/use-hash/use-hash.ts
Line 5 in b10a096
with
The text was updated successfully, but these errors were encountered: