MCPcopy Create free account
hub / github.com/github/docs / hashChangeHandler

Function hashChangeHandler

components/sidebar/RestCollapsibleSection.tsx:58–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 }
57
58 const hashChangeHandler = () => {
59 setCurrentAnchor(window.location.hash)
60 }
61
62 window.addEventListener('hashchange', hashChangeHandler)
63

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected