(event: PopStateEvent)
| 539 | load: (href) => location.assign(href), |
| 540 | listen: (popped) => { |
| 541 | const f = (event: PopStateEvent) => { |
| 542 | popping = true |
| 543 | try { |
| 544 | popped(currentUrl(), history.state, event.hasUAVisualTransition) |
| 545 | } finally { |
| 546 | popping = false |
| 547 | } |
| 548 | // After `onLeave` saved the entry the Router left. |
| 549 | if (scroll) track() |
| 550 | } |
| 551 | window.addEventListener("popstate", f) |
| 552 | return () => window.removeEventListener("popstate", f) |
| 553 | } |
no test coverage detected