()
| 44 | /* Sync state when the user navigates with the browser back/forward buttons. */ |
| 45 | useEffect(() => { |
| 46 | const onPopState = () => setRoute(readRoute()); |
| 47 | window.addEventListener("popstate", onPopState); |
| 48 | return () => window.removeEventListener("popstate", onPopState); |
| 49 | }, []); |
nothing calls this directly
no test coverage detected