Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[@mantine/hooks] use-hash: Fix unexpected rerendering with hash witho…
…ut `#` (#3097) * Fix use-hash extra rerendering issue Two bugs fixed: * If you `setHash` to something that doesn't start with "#" it would be reflect that temporarily in `hash` * `setHashValue` was being called multiple times (one in the listener and the set hash) resulting in the multiple renders Result: * `setHash` only rerenders the page once. * Fix tests window is not defined in ssr * fix formatting * Fix no-param-reassign and prefer-template
- Loading branch information