()
| 43 | const [hash, setHash] = useState(window.location.hash); |
| 44 | useEffect(() => { |
| 45 | const onChange = () => setHash(window.location.hash); |
| 46 | window.addEventListener("hashchange", onChange); |
| 47 | return () => window.removeEventListener("hashchange", onChange); |
| 48 | }, []); |
nothing calls this directly
no outgoing calls
no test coverage detected