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

Function hashChangeHandler

components/page-header/Header.tsx:115–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113 // for hash changes and close the overlay when the hash changes.
114 useEffect(() => {
115 const hashChangeHandler = () => {
116 setIsSidebarOpen(false)
117 }
118 window.addEventListener('hashchange', hashChangeHandler)
119
120 return () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected