(callback: () => void)
| 17 | }; |
| 18 | |
| 19 | export function subscribe(callback: () => void) { |
| 20 | listeners.add(callback); |
| 21 | return () => { |
| 22 | listeners.delete(callback); |
| 23 | }; |
| 24 | } |
| 25 | |
| 26 | export function getSnapshot() { |
| 27 | if (cachedSnapshot.promise !== navigationPromise || cachedSnapshot.pathname !== targetPathname) { |
no test coverage detected