Skip to content

Commit

Permalink
Fix useHash not updating
Browse files Browse the repository at this point in the history
  • Loading branch information
lachtanek authored Apr 29, 2024
1 parent b95051c commit f3aa9f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@mantine/hooks/src/use-hash/use-hash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function useHash({ getInitialValueInEffect = true }: UseHashOptions = {})
useWindowEvent('hashchange', () => {
const newHash = window.location.hash;
if (hash !== newHash) {
setHashValue(hash);
setHashValue(newHash);
}
});

Expand Down

0 comments on commit f3aa9f8

Please sign in to comment.