()
| 167 | // Handle browser back/forward (popstate) |
| 168 | useEffect(() => { |
| 169 | const handlePopState = async () => { |
| 170 | const state = await decodeCameraStateFromHash(window.location.hash); |
| 171 | if (state) { |
| 172 | flyToState(state); |
| 173 | lastEncodedState.current = encodeCameraState(state); |
| 174 | } |
| 175 | }; |
| 176 | |
| 177 | window.addEventListener('popstate', handlePopState); |
| 178 | return () => window.removeEventListener('popstate', handlePopState); |
nothing calls this directly
no test coverage detected