(url: string)
| 9 | let routeTransitionTimer: any = null |
| 10 | |
| 11 | const handleRouteChangeStart = (url: string) => { |
| 12 | clearTimeout(routeTransitionTimer) |
| 13 | routeTransitionTimer = setTimeout(() => { |
| 14 | if (currentRoute.current !== url) { |
| 15 | currentRoute.current = url |
| 16 | setPendingRoute(url) |
| 17 | } |
| 18 | }, 100) |
| 19 | } |
| 20 | const handleRouteChangeComplete = () => { |
| 21 | setPendingRoute(null) |
| 22 | clearTimeout(routeTransitionTimer) |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…